News for hackers. Stuff that matters.
Re:ECMAScript 2017 Language Specification by shinypotatoe on Wednesday July 12, 2017 @01:02AM (#14750220)
Checkout TypeScript. It's great.
Re:ECMAScript 2017 Language Specification by pier25 on Wednesday July 12, 2017 @10:03AM (#14752573)
I know, but it's not JavaScript.
Re:ECMAScript 2017 Language Specification by Veen on Wednesday July 12, 2017 @11:09AM (#14753181)
For the most part it is JavaScript. JavaScript is valid Typescript, because Typescript is a superset. Typescript just gets you type annotations and "future" JavaScript features, none of which you're forced to use.
Re:ECMAScript 2017 Language Specification by pier25 on Wednesday July 12, 2017 @06:36PM (#14757264)
Yes I know, but again, it's not JavaScript and there will always be headaches here and there.

For example: https://vuejs.org/v2/guide/typescript.html

Re:ECMAScript 2017 Language Specification by roboguy12 on Wednesday July 12, 2017 @04:29PM (#14756348)
And, when you compile it to JavaScript, you can choose the target language level. So, you could write Typescript and have it compile such that in essence, all it does is strip out the type annotations.