[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: String interpolation
From: |
Stefan Monnier |
Subject: |
Re: RFC: String interpolation |
Date: |
Mon, 12 Dec 2016 12:14:19 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> (fmt "This is %{thing}.2f"
> :thing (replace-regexp-in-string " +" " " thing))
I think the above is clearly better than `preformat` under one
condition: make it a function rather than a macro.
The downside (other than performance, tho that can be compounded by
a compiler-macro) is that
(fmt "This is %{thing}.2f")
won't work any more, you'll need
(fmt "This is %{thing}.2f" :thing thing)
instead.
Stefan
- Re: RFC: String interpolation, (continued)
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Clément Pit--Claudel, 2016/12/12
- Re: RFC: String interpolation,
Stefan Monnier <=
- Re: RFC: String interpolation, Paul Eggert, 2016/12/12
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Ted Zlatanov, 2016/12/12
- Re: RFC: String interpolation, Paul Eggert, 2016/12/12
- Re: RFC: String interpolation, Paul Eggert, 2016/12/12
- Re: RFC: String interpolation, Richard Stallman, 2016/12/13
- Re: RFC: String interpolation, Paul Eggert, 2016/12/13
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/13
- Re: RFC: String interpolation, Paul Eggert, 2016/12/13
- Re: RFC: String interpolation, John Wiegley, 2016/12/13