[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: |
Sun, 11 Dec 2016 13:56:57 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 2016-12-11 13:46, Lars Ingebrigtsen wrote:
> Ted Zlatanov <address@hidden> writes:
>
>> CP> Also: how does format-spec deal with formatting sequences, like %-3.2d?
>>
>> It doesn't.
>
> format-spec does support formatting sequences like that. :-)
>
> (format-spec "bar %-10a" '((?a . "foo")))
> => "bar foo "
How do you tell which format code to use? (format-spec "bar %-.2f" '((?f .
53))) doesn't work, for obvious reasons :)
signature.asc
Description: OpenPGP digital signature
Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/10
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/10
- 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