As my knowledge TypeScript Developed by Microsoft and Used for dynamically generate JavaScript.
I want know that What is difference between TypeScript and AtScript. Which one is better to learn for JavaScript programmer.
TypeScript has a feature known as Static typing but JavaScript does not support this feature. TypeScript supports Interfaces but JavaScript does not. TypeScript always points out the compilation errors at the time of development (pre-compilation). Because of this getting runtime errors is less likely, whereas JavaScript is an interpreted language.
TypeScript (TS), on the other hand, is a JavaScript superset. It’s mostly JavaScript, just with static typing and truer object-oriented programming, although it’s multiparadigm as well. It does compile into JavaScript, so it’s a language that depends on JavaScript underneath.
AtScript was planned to be a layer on top of TypeScript (i.e. a super-set of a super-set) - but now the two projects are one. AtScript annotation syntax is just a shorthand of placing the same information in ES5. It would be reasonable for an ES5 developer to write these annotations manually.
TypeScript Code is converted into Plain JavaScript Code: TypeScript code can’t be natively interpreted by browsers. So if the code was written in TypeScript, it gets compiled and converted into JavaScript. This process is known as Trans-piled. With the help of JavaScript code, browsers are able to read the code and display it.
Rather than create another new programming language—Google has already done that with Dart—AtScript is designed to run on top of not only ECMAScript 5 and the upcoming ECMAScript 6, but atop Microsoft’s superset TypeScript language as well. The goal of AtScript is to make type annotation data available at runtime, also known as type introspection, in an effort to enhance JavaScript with type, field and metadata annotations.
References
As I understand it the intention was that ATScript will be a superset of TypeScript which will add some additional features around reflection and metadata.
It was recently announced that google and microsoft have been working together and that ATScript and Typescript will be merged moving forward.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With