From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: RFC: String interpolation Date: Mon, 12 Dec 2016 02:31:27 +0700 Message-ID: References: <51825111-ace4-f750-4077-026a3b648d27@gmail.com> <8737hwnc52.fsf@lifelogs.com> <8c117f5c-209a-97d8-79ce-a78f707f0545@gmail.com> <76c9c475-0180-aa49-3d4a-006d4e3f943c@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481484846 5849 195.159.176.226 (11 Dec 2016 19:34:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2016 19:34:06 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 20:34:01 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG9sn-0000nw-1I for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 20:34:01 +0100 Original-Received: from localhost ([::1]:56914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG9sr-0006vs-5u for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 14:34:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG9s2-0006u7-Ha for emacs-devel@gnu.org; Sun, 11 Dec 2016 14:33:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG9rz-0000DC-Fz for emacs-devel@gnu.org; Sun, 11 Dec 2016 14:33:14 -0500 Original-Received: from mail-wm0-f50.google.com ([74.125.82.50]:35148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cG9rz-00009Z-A8 for emacs-devel@gnu.org; Sun, 11 Dec 2016 14:33:11 -0500 Original-Received: by mail-wm0-f50.google.com with SMTP id a197so34102961wmd.0 for ; Sun, 11 Dec 2016 11:32:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=EenfxkE/tyi3TlRiOh7397hkx+Qw0+mEAQhZsWgsyC4=; b=TzZlVKneJNaHxIicruQ1WwmRffTRReab4di7ZPbdXjAzZyEIhjFAfqM3rSq+56kGYz PsZhHiXnmnkLDIbYVVJy2j79ahXbE4EkyD0dbbGREibwphJ84vZd+phwaCG9t8Bvs7wU tljtqvqO81fI8A1+CXh3vRURqlJYf5aVz9+Uu80K0MeXq42zdiBU5FI5jdUg2GvCONSn 1k4zRrHTiCncF/St1HIVx5Lwg0vFocFlajYOfrgrXmWAmAD52tp/qNMyw5+CkpOiUS2c z7oJyR0q/tlCKMBvoZmX+NQ7Td0JOgRbxImGdHHHa8LhF+yqsBCiJjPW0K13Jow8d8U8 0qbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=EenfxkE/tyi3TlRiOh7397hkx+Qw0+mEAQhZsWgsyC4=; b=bz4OuaNETCvzhu73+B6VY52ljt4s32uBxrEa/70t5znGl8F6GG1tzODK/VDGLX1B6+ x9OJKG2s7yXi+AbACdFmoCc4brtZ660j/J1HF67Jo5SrjTcGxX1VQs8N1bzLEcjGF/SO t4IqHV23Zf065eWnCk7hbbhIjdzeJHv2WhYv+sgILKh5Uzqk2eCecMmqL6BSFj5SX4Kg 7RqmISgDB4u9FyAdFVVEi3WJGXSt26fdWsBNQCh6r5l3vY2xNVB9TbldWNqtbTJhuE22 2I00dvQK0OMMf+CbWFAKHRPIZjX/+GWje5xvqg8Zz1ucecEafsjA19WIRjelyPs772aj /2hw== X-Gm-Message-State: AKaTC02mVDDE97t84SbLxI2THYoej08Kwn1I0i82li8t2zDmK6LpDrZFaIaRizCqYE31Bl3toKpBsefqIVtJpw== X-Received: by 10.46.7.10 with SMTP id 10mr39171115ljh.60.1481484708486; Sun, 11 Dec 2016 11:31:48 -0800 (PST) Original-Received: by 10.114.77.161 with HTTP; Sun, 11 Dec 2016 11:31:27 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: EQ730YGqHNxaOW3H4cI4MI-7w90 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210307 Archived-At: On Mon, Dec 12, 2016 at 12:47 AM, Stefan Monnier wrote: >>> "This is %(funcall '+ 3.42423 4).2f and "foo"s" >> If this wasn=E2=80=99t Emacs, I would name lack of localizability as a >> drawback of including code as part of strings. > > Note that with if the macro internally uses just a single `format` call, > then the above gets macro-expanded into something like > > (format "This is %s and %ss" ...) > > which is as amenable to localization as your typical printf. Technically yes, but one normally gives out original format strings for localization, not results of macro expansion. And that means localizers need to be careful not to break the code embedded therein. And that, in turn, is just not a reasonable expectation.