emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: String interpolation


From: Yuri Khan
Subject: Re: RFC: String interpolation
Date: Sat, 10 Dec 2016 23:01:08 +0700

On Sat, Dec 10, 2016 at 10:49 PM, Clément Pit--Claudel
<address@hidden> wrote:

>> (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.

If this wasn’t Emacs, I would name lack of localizability as a
drawback of including code as part of strings. But that’s moot because
no one writes localizable software in Elisp.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]