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: Mon, 12 Dec 2016 02:31:27 +0700

On Mon, Dec 12, 2016 at 12:47 AM, Stefan Monnier
<address@hidden> wrote:
>>> "This is %(funcall '+ 3.42423 4).2f and "foo"s"
>> If this wasn’t 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.



reply via email to

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