[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: String interpolation
From: |
Helmut Eller |
Subject: |
Re: RFC: String interpolation |
Date: |
Sun, 11 Dec 2016 22:05:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
On Sun, Dec 11 2016, Lars Ingebrigtsen wrote:
> The other approach I mentioned is less explicit:
>
> (fmt "This is %{thing}.2f and %{zot}ss"
> (thing (funcall '+ 3.42423 4)))
>
> If the named parameter mentioned isn't part of the value alist, then
> it's taken as a variable in its lexical/dynamic space, but if it does,
> then we use the value provided in the alist.
Keyword paramaters are also an option:
(fmt "This is %{thing}.2f and %{zot}ss" :thing (funcall '+ 3.42423 4))
Helmut
- Re: RFC: String interpolation, (continued)
- 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, 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 <=
- 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
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12