[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.
- Re: RFC: String interpolation, (continued)
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/10
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/10
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/10
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/10
- Re: RFC: String interpolation, Yuri Khan, 2016/12/10
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/10
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/11
- Re: RFC: String interpolation,
Yuri Khan <=
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/11
Re: RFC: String interpolation, Richard Stallman, 2016/12/11
Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/11
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/11
Re: RFC: String interpolation, Richard Stallman, 2016/12/12
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/11
Re: RFC: String interpolation, Helmut Eller, 2016/12/11
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/11
Re: RFC: String interpolation, Stefan Monnier, 2016/12/11
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12