News for hackers. Stuff that matters.
Re:ECMAScript 6 looks promising by riffraff on Thursday November 24, 2011 @02:40PM (#3275222)
these are good reasons for having a string templating system in a library, but I was referring to the 90% use case of having a script that outputs something it computes.

The things don't seem mutually exclusive to me.

Re:ECMAScript 6 looks promising by masklinn on Thursday November 24, 2011 @03:03PM (#3275288)
> The things don't seem mutually exclusive to me.

Sure but now you have two very different ways to format your strings and language users need to realize they should be using the one they're not used to for these specific tasks, even though there's pretty much nothing helping make them realize it.

That significantly increases the user's cognitive load, and the risks of misusing APIs unless your language is able to express (and safegard against) the danger of string interpolation in specific contexts.