Microsoft pushes optional type annotations for JavaScript

Microsoft is backing a proposal to bring optional and erasable type syntax to JavaScript, potentially making the company’s TypeScript language, which builds on JavaScript, faster and easier to use.The standards proposal calls for allowing type annotations to be added to JavaScript code that would be checked by type checkers external to JavaScript. At runtime, a JavaScript engine would treat the types as comments. The plan calls for JavaScript to carve out of a set of syntax for types that engines would ignore but tools such as TypeScript, Flow, and others could use. This proposal would add optional annotations to ECMAScript, the official standard underlying JavaScript.To read this article in full, please click here

Nov 30, -0001 - 00:00
 0
Microsoft pushes optional type annotations for JavaScript
Techatty All-in-1 Publishing
Techatty All-in-1 Publishing

Microsoft is backing a proposal to bring optional and erasable type syntax to JavaScript, potentially making the company’s TypeScript language, which builds on JavaScript, faster and easier to use.

The standards proposal calls for allowing type annotations to be added to JavaScript code that would be checked by type checkers external to JavaScript. At runtime, a JavaScript engine would treat the types as comments. The plan calls for JavaScript to carve out of a set of syntax for types that engines would ignore but tools such as TypeScript, Flow, and others could use. This proposal would add optional annotations to ECMAScript, the official standard underlying JavaScript.

To read this article in full, please click here

Techatty Connecting the world of tech differently! Read. Write. Learn. Thrive. Make an informed decision without distractions. We are building tech media and publication networks to connect YOU and everyone to reliable information, opportunities, and resources to achieve greater success.