automatic variable substitution in strings

Topics: Language Specification
Jan 29, 2013 at 9:12 AM

Hello,

I would like to have the following feature in typescript, ie the ability to automatically substitute variables in strings... I suggest the following ;

the typescript expression : 

"something $myvariable$ somewhere"

woud be translated in javacript into :

"something "+ myvariable+" somewhere"

 

regards

Xavier

 

Coordinator
Jan 29, 2013 at 5:00 PM

There is some work on template strings in the new version of JavaScript.  You can see a bit more on this feature request: http://typescript.codeplex.com/workitem/19.  Up-voting feature requests is a good way to let us know which ones are important.