From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: RFC: String interpolation Date: Sun, 11 Dec 2016 04:35:28 -0500 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> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481448985 15034 195.159.176.226 (11 Dec 2016 09:36:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2016 09:36:25 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 10:36:20 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 1cG0YN-0002sV-OP for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 10:36:19 +0100 Original-Received: from localhost ([::1]:54948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG0YR-0005vh-Oi for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 04:36:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG0Xo-0005vQ-Pc for emacs-devel@gnu.org; Sun, 11 Dec 2016 04:35:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG0Xn-0000Qs-Rl for emacs-devel@gnu.org; Sun, 11 Dec 2016 04:35:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG0XY-0000Mm-Mf; Sun, 11 Dec 2016 04:35:28 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cG0XY-0002Zz-0r; Sun, 11 Dec 2016 04:35:28 -0500 In-reply-to: <76c9c475-0180-aa49-3d4a-006d4e3f943c@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Sat, 10 Dec 2016 10:49:59 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:210262 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I don't know: Python has had it for a while, no one uses it, and they are now introducing interpolation… > > (with-format ((zot "foo") > > (thing (funcall '+ 3.42423 4))) > > "This is %{thing}.2f and %{zot}ss") > This looks fine too, but the repetition bothers me (I don't really see what benefit there is to naming all arguments). So I still find > "This is %(funcall '+ 3.42423 4).2f and "foo"s" > more readable. Is there a reason why people are writing (funcall '+ 3.42423 4) rather than (+ 3.42423 4)? -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.