[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: String interpolation
From: |
Lars Ingebrigtsen |
Subject: |
Re: RFC: String interpolation |
Date: |
Mon, 12 Dec 2016 15:47:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> I see no need for renaming and altering the format statement itself:
>
> (let ((thing (replace-regexp-in-string " +" " " thing)))
> (fmt "This is %{thing}.2f"))
Ah, but then a typical programmer would just say
(setq thing (replace-regexp-in-string " +" " " thing))
(fmt "This is %{thing}.2f")
because programmers like setq more than introducing new, nesting
bindings. And then they later want the original value of the variable
later, anyway, and then they finally rewrite it to use a let for or a
new variable name.
I've been doing PHP for decades. Typical work flow. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: RFC: String interpolation, (continued)
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/11
- Re: RFC: String interpolation, Helmut Eller, 2016/12/11
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/11
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/11
- Re: RFC: String interpolation, Lars Ingebrigtsen, 2016/12/12
- Re: RFC: String interpolation, Stefan Monnier, 2016/12/12
- Re: RFC: String interpolation,
Lars Ingebrigtsen <=
- 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, 2016/12/12
- Re: RFC: String interpolation, Paul Eggert, 2016/12/12