[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.
signature.asc
Description: OpenPGP digital signature
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/10
- Re: RFC: String interpolation,
Clément Pit--Claudel <=
- 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, 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