emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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