TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

TypeScript Language Specification - string interpolation

Open przemyslawsokol opened this issue 11 years ago • 2 comments

TypeScript Language Specification does not mention string interpolation feature.

przemyslawsokol avatar Sep 17 '15 14:09 przemyslawsokol

The typescript spec is based on the ES6 spec, so it is amused that any syntactic ES6 feature is a TypeScript feature unless stated other wise. as mentioned in the Grammar section:

This appendix contains a summary of the grammar found in the main document. As described in section 2.1, the TypeScript grammar is a superset of the grammar defined in the ECMAScript Language Specification (specifically, the ECMA-262 Standard, 6th Edition) and this appendix lists only productions that are new or modified from the ECMAScript grammar.

this however seems like a good entry in the handbook. there is a reference to string templates in the basic types section. Contributions to the handbook are always welcomed.

mhegazy avatar Sep 17 '15 17:09 mhegazy

Good point. Thanks for clarification.

przemyslawsokol avatar Sep 17 '15 17:09 przemyslawsokol