emacs-devel
[Top][All Lists]
Advanced

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

Re: RFC: String interpolation


From: Clément Pit--Claudel
Subject: Re: RFC: String interpolation
Date: Mon, 12 Dec 2016 09:54:22 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 2016-12-12 09:43, Lars Ingebrigtsen wrote:
> You don't introduce any new variables, alter any variables, or alter the
> format statement.  I think that's less suckitude.

I don't understand.  You're comparing this:

(let ((thing (replace-regexp-in-string " +" " " thing)))
  (fmt "This is %[.2f]{thing}.2f"))

to this:

(fmt "This is %{thing}.2f"
     :thing (replace-regexp-in-string " +" " " thing))

right?

Admittedly the form below doesn't rebind "thing", but it now has ":thing" and 
"thing" meaning different things.

Cheers,
Clément.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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