On Saturday, 15 April 2017 at 20:35:56 UTC, crimaniak wrote:
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
The compiler will basically lower the $"..." string to a mixin that concatenates the expression parts of the (inside the {}) and the plain text parts.
It's easy implementable as a library (see https://github.com/Abscissa/scriptlike#string-interpolation) so it does not seem like a good idea to modify the language, only to change interp!"" to $"".

Lowerings are by definition possible to implement in a library.

Using that argument foreach (i; 0..100) {} should not be part of the
language even though I think very few would live without foreach.



Reply via email to