From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Lars Ingebrigtsen <larsi@gnus.org>
Newsgroups: gmane.emacs.devel
Subject: Re: RFC: String interpolation
Date: Wed, 14 Dec 2016 15:10:03 +0100
Message-ID: <m3r35ak3es.fsf@gnus.org>
References: <51825111-ace4-f750-4077-026a3b648d27@gmail.com>
	<8737hwnc52.fsf@lifelogs.com> <m34m2bj2m2.fsf@gnus.org>
	<8c117f5c-209a-97d8-79ce-a78f707f0545@gmail.com>
	<m3wpf7hjzf.fsf@gnus.org>
	<76c9c475-0180-aa49-3d4a-006d4e3f943c@gmail.com>
	<m3oa0ifgvd.fsf@gnus.org> <m2k2b6rxaj.fsf@gmail.com>
	<m38trmdun6.fsf@gnus.org>
	<jwvr35dub31.fsf-monnier+gmane.emacs.devel@gnu.org>
	<m3r35dcwht.fsf@gnus.org>
	<89a6a20d-e135-caad-6b31-760ab7ac90fc@cs.ucla.edu>
	<87fultkjte.fsf@lifelogs.com>
	<3ff9e7e4-aee7-191e-5e3b-4d4ac0006a1f@cs.ucla.edu>
	<9e138d20-782d-2a56-75f8-37e3fa1885df@cs.ucla.edu>
	<E1cGr5w-0000yZ-0w@fencepost.gnu.org>
	<4e9c0a7e-2d44-5fc7-79d8-7b19758fef01@cs.ucla.edu>
	<m3vaun4c62.fsf@gnus.org>
	<ab263415-9c3a-6c2d-afd1-7e135a88355d@cs.ucla.edu>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1481724632 29788 195.159.176.226 (14 Dec 2016 14:10:32 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 14 Dec 2016 14:10:32 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
Cc: rms@gnu.org, emacs-devel@gnu.org
To: Paul Eggert <eggert@cs.ucla.edu>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 15:10:22 2016
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cHAGE-0005zz-9z
	for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2016 15:10:22 +0100
Original-Received: from localhost ([::1]:47956 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cHAGF-0007Ns-90
	for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2016 09:10:23 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44705)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <larsi@gnus.org>) id 1cHAG8-0007GT-0A
	for emacs-devel@gnu.org; Wed, 14 Dec 2016 09:10:17 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <larsi@gnus.org>) id 1cHAG4-00009v-KO
	for emacs-devel@gnu.org; Wed, 14 Dec 2016 09:10:15 -0500
Original-Received: from hermes.netfonds.no ([80.91.224.195]:56273)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <larsi@gnus.org>)
	id 1cHAG4-00008U-Dw; Wed, 14 Dec 2016 09:10:12 -0500
Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories)
	by hermes.netfonds.no with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2)
	(envelope-from <larsi@gnus.org>)
	id 1cHAFv-0006LX-W4; Wed, 14 Dec 2016 15:10:06 +0100
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEX27+P9+u/Gtb/9+e5V
	LTz+/fX1zdjy09j89+taCAdb2xGdAAACP0lEQVQ4jV2UvW/bMBDFz0gCezRLqPVaRXXRLcx14Ji6
	bApvMQIBnYVAXY3YrTPKZgJzNrzwv80jra/kPAi4n+49nu5oIielyENcf73Iu6CR5SS525xiudxQ
	C5xM8nvnJtpRdaa2iwY4p5I8yRcUY0CtlLNKifwPvQR8l6bpRSul1ELQIsnzZJiGeGmlhKBcqGT8
	v/wbwJemgidXAyHEvpiWZQFw03rw01Ykn9K0RDym6azpw+2tkmKXTgMo09T8q6XsE0OpOOVhY37W
	AG0pOSnKOh7NrAaE/P3HaQNKYy5Ox12xgEXZA5exojqz6KTLl5n5HcGeWapxDzyYWRKkSAq5nUz7
	IByY3ErBnGcdKIz5FQHa05z1tEwwodGTZWaV3faBAahG2gKte1qZMZ9z2mMerPSz6ezh/iMAZq3s
	d3PbA/ODqAFfm06rMPOjoqFl/OwH02kVxvtLGjoAtmPT05p7fwMQ3HliupIC4EA0wvjUYoIzNi5Q
	8keiFUupBQPUJPMRoPOtxGjXpiYx7z2As4zPeB4AbB7mDSDmrRDyOQKT1nkfB8XC8u4EvG9BNcD2
	SHkd8/MewDJg5lJnbwo8+qg4rKk+f5MHwMJpiw3a9YUicEulsSgy6xcEKSy1DC7n8/fALllJxTv/
	HrhqIBfQWvfyM6LKOTfcJmjm6lubP5zFCuc2uFNK77q8qIHbjIJ/LXbAjADCxYdaeGyi2BEfXFET
	sU7vcOTj0mFzqIsRjkG4tUuIK10nh/jr6d5AhXsF5q10AY9WF5EAAAAASUVORK5CYII=
In-Reply-To: <ab263415-9c3a-6c2d-afd1-7e135a88355d@cs.ucla.edu> (Paul Eggert's
	message of "Tue, 13 Dec 2016 16:07:10 -0800")
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 80.91.224.195
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:210451
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/210451>

Paul Eggert <eggert@cs.ucla.edu> writes:

>> I don't think you'd want to rewrite that to
>>
>> (message "The time is %d%" clock " in the %s%" part " bit of %s%" country)
>>
>> Or would you?  (The final "%" is optional, of course.")
>
> Apparently some people prefer this style -- it's what started the
> thread, after all.

Well, no -- that's not the style that started the thread.  :-)

What some people would like is something that looks like

(message "The time is $clock in the $part bit of $country")

which is very different visually and comprehension wise: You see pretty
much immediately what the result is going to look like by looking at the
source code, while that's not true for the interpolated version at the
time, which has a lot more visual noise.

But, as I've said, I have reservations (and no enthusiasm) about simple
string interpolation, and I have some doubts that the style at the top
will satisfy the craving for simple string interpolation.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no