emacs-devel
[Top][All Lists]
Advanced

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

Re: RFC: String interpolation


From: Stefan Monnier
Subject: Re: RFC: String interpolation
Date: Sun, 11 Dec 2016 12:47:00 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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

> But that’s moot because no one writes localizable software in Elisp.

Sad but true.


        Stefan




reply via email to

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