The state of string interpolation
Paul Backus
snarwin at gmail.com
Tue Dec 11 17:55:59 UTC 2018
On Tuesday, 11 December 2018 at 17:12:46 UTC, Sjoerd Nijboer
wrote:
> The biggest benefit I think of doing it this way is
> standardisation. Because if it were to be done with a library
> implementation, there will probably be a few libraries which
> will implement it with various syntax and in various stages of
> working. Furtheron, people would have to learn a library
> instead of a language feature, which on itsself isn't such big
> of a deal except that there are probably multiple libraries
> doing thesame thing, and libraries are harder to find
> documentation for. Its always annoying in a professional
> project to have to add external dependencies for small
> features. It becomes a liability and makes D less attractive.
You can get the same benefit by putting the library version in
the standard library.
I do agree that this is important, and I think more people would
use `interp` if it came with Phobos rather than in a dub package.
More information about the Digitalmars-d
mailing list