From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.devel
Subject: Re: RFC: String interpolation
Date: Sun, 11 Dec 2016 12:38:51 -0500
Message-ID: <jwvy3zmwera.fsf-monnier+gmane.emacs.devel@gnu.org>
References: <51825111-ace4-f750-4077-026a3b648d27@gmail.com>
	<8737hwnc52.fsf@lifelogs.com>
	<d428e876-1db3-b5bd-129f-34d8440f83dc@gmail.com>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1481477993 1945 195.159.176.226 (11 Dec 2016 17:39:53 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 11 Dec 2016 17:39:53 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
To: emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 18:39:49 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 1cG86G-0008Rg-Nm
	for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 18:39:48 +0100
Original-Received: from localhost ([::1]:56508 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 1cG86K-0004Bp-TR
	for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 12:39:52 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49668)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1cG85W-0004Ar-VP
	for emacs-devel@gnu.org; Sun, 11 Dec 2016 12:39:03 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1cG85T-0004ic-LT
	for emacs-devel@gnu.org; Sun, 11 Dec 2016 12:39:03 -0500
Original-Received: from [195.159.176.226] (port=60625 helo=blaine.gmane.org)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <ged-emacs-devel@m.gmane.org>)
	id 1cG85T-0004hx-Eq
	for emacs-devel@gnu.org; Sun, 11 Dec 2016 12:38:59 -0500
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <ged-emacs-devel@m.gmane.org>) id 1cG85M-0007nR-Dv
	for emacs-devel@gnu.org; Sun, 11 Dec 2016 18:38:52 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 13
Original-X-Complaints-To: usenet@blaine.gmane.org
Cancel-Lock: sha1:jGyarA9fVMRoJKCc4V+8C3svdMQ=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 195.159.176.226
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:210289
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/210289>

> Thanks for the feedback! Can you share concrete examples in which this
> makes maintenance harder?

I think the simple fact that it makes
highlighting/completion/indentation more complex (not to mention the
potential to have format-strings within format-strings within...) is
a good hint that you don't want to encourage writing code within the
format string: it works fine for very simple pieces of code, but for
anything more significant you're better off writing the code outside the
string (and then referring to that code from the string).


        Stefan