[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.
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 <=
- 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, 2016/12/11
- 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