Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2

Walter Bright newshound2 at digitalmars.com
Fri Jan 29 09:25:42 UTC 2021


On 1/29/2021 1:15 AM, Rikki Cattermole wrote:
> Would a pragma i.e.
> 
> pragma(rewriteStringIntoFormatVarargs)
> extern(C) int printf(const char* fmt, ...);
> 
> Make you feel more comfortable with this DIP?
> 
> This way only functions which the binding creator says fall into this style can 
> be called via a interpolated string correctly. Without any overloads or anything 
> else.

The more special cases there are, the more unwieldy the language becomes, and 
the more unexpected interactions and unforeseen bugs.


More information about the Digitalmars-d mailing list