DIP 1027---String Interpolation---Community Review Round 1

Andrea Fontana nospam at example.org
Wed Dec 11 20:59:33 UTC 2019


On Wednesday, 11 December 2019 at 20:38:49 UTC, Steven 
Schveighoffer wrote:
>
> This is very much focused on writef and printf. What about 
> other functions that accept similar string + arg tuple, but 
> don't use %s specifiers? Perfect example is SQL:
>
> query("select * from sometable where date < ?", someDate);
>
> With the interpolation string:
>
> query(i"select * from sometable where date < %someDate");
>
> This translates to:
>
> query("select * from sometable where date < %s", someDate);
>
> 

query(i"select * from sometable where date < %someDate".format);









More information about the Digitalmars-d mailing list