|
From: | Paul Eggert |
Subject: | Re: RFC: String interpolation |
Date: | Tue, 13 Dec 2016 16:17:58 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 12/13/2016 04:10 PM, John Wiegley wrote:
This way you could just say: (format "This %d" 10 " and this %d" 20) Or: (format "This %d and %d" 10 20 " and this %d" 30) Or: (format "This %d and %d and %d" 10 20 30)
Although that would work, it's an incompatible change to documented behavior. The manual currently says that excess arguments are ignored, which means that currently all three expressions have well-defined (and differing) behaviors.
A few months ago I changed 'message' in an incompatible way, figuring that almost nobody would care. Boy, was I wrong! That being said, I agree that the above style is simpler and would be easy to implement, and I can do it that way if you prefer.
[Prev in Thread] | Current Thread | [Next in Thread] |