DIP 1027--String Interpolation--Final Review Discussion Thread

rikki cattermole rikki at cattermole.co.nz
Wed Feb 5 15:27:30 UTC 2020


On 06/02/2020 4:00 AM, Adam D. Ruppe wrote:
> 1) sql(i""); just works, with correct parameterization
> 2) jsx(i""); just works, with correct contextual encoding
> 3) writeln(i""); just works
> 4) printf(i""); can just work
> 5) Even readf(i""); just works!
> 6) Error detection is possible - at compile time - for all those scenarios
> 7) @nogc i"".toBuffer(...) is possible.
> 8) gettext() style internationalization is possible, including with the 
> D compiler itself collecting the strings!
> 9) foo!i"" works to collect D aliases so like `my_debug!i"$a and $b"` 
> might give
>    a = 5 and b = 3
> 10) whatever else library authors can dream up!

Oh that is looking good.

Now that is something I could use.


More information about the Digitalmars-d mailing list