This project is read-only.

automatic variable substitution in strings

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


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"





Jan 29, 2013 at 6: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:  Up-voting feature requests is a good way to let us know which ones are important.