DIP 1027---String Interpolation---Community Review Round 1
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Dec 11 20:12:46 UTC 2019
On Wednesday, 11 December 2019 at 19:34:01 UTC, Patrick Schluter
> Cobol), but as C had so much other things to it, people tended
> to accept the strange and ugly printf formatting, but it's
> clear that i was universally loathed. That's why C++ tried this
> worse shift syntax and other languages tried other solutions.
> It is not because we in the end managed to get used to the
> outdated and dangerous printf format that it is good in the
> first place.
> This DIP is simple enough that it is a good candidate imho to
> be tried.
If something is bad… (…and I agree, printf is not good.) Why
would you embrace it by making it part of the language?
Currently it only part of a library and can be phased out. Make
it part of the language and you'll be stuck with it. Creating a
better solution and create a wrapper for printf and other C-APIs
would be the better approach.
Otherwise you'll end up with another interpolated string
version... down the road. How many string-literals can a language
More information about the Digitalmars-d