emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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