Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between TypeScript and AtScript [closed]

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.

like image 345
virender Avatar asked Mar 10 '15 10:03

virender


People also ask

What is the difference between typescript and JavaScript?

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.

What is typescript (TS)?

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.

What is @AtScript?

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.

How TypeScript code is converted to JavaScript?

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.


Video Answer


2 Answers

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. enter image description here References

  • http://sdtimes.com/atscript-googles-new-superset-javascript-runtime/
  • http://techcrunch.com/2015/03/05/microsoft-and-google-collaborate-on-typescript-hell-has-not-frozen-over-yet
like image 199
AhmadAssaf Avatar answered Nov 13 '22 04:11

AhmadAssaf


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.

like image 28
Sam Holder Avatar answered Nov 13 '22 02:11

Sam Holder