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: Sat, 10 Dec 2016 09:25:57 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 2016-12-10 09:11, Lars Ingebrigtsen wrote:
> Ok, but variable is a floating point number, and I only wanted two
> decimals, so...  er...
> 
>   (let ((pvar (format "%.2f" variable)))
>     "This number is ${pvar}s"
> 
> (You see the equivalent type of code in all languages that have "simple"
> string interpolation, like PHP, all the time.)

I thought I adressed this case specifically in my proposal :/

  (fmt "This number is $[%.2f]{pvar}s")

Cheers,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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