DIP 1027--String Interpolation--Final Review Discussion Thread
Lim
himeix at outlook.com
Thu Feb 6 15:35:49 UTC 2020
On Thursday, 6 February 2020 at 07:00:33 UTC, Walter Bright wrote:
> Template instantiations are a LOT slower than direct
> implementation. Lots of interpolated strings means lots of
> template instantiations.
For end users not familiar to D's new string interpolation
solution. It could take a lot more time for them to figure out
what just happened and to fix their code when something
unexpected happened. This could be much more than the time to
instantiate templates.
I know this try and error will happen, hopefully, only once to
each user but every compile would take time to do the template
stuff. But the time to make functions written in the future fo
correctly handle the DIP's implementation is also needs to be
considered.
More information about the Digitalmars-d
mailing list