Why not Dart?
Angular 2: Built on TypeScript
41–50 of 235 posts
Re: Angular 2: Built on TypeScript
#42Earlier quoted context omitted.
Dart requires loading a dart runtime js file on to the page, as far as I know. And I think they would claim Typescript is javascript + some extra stuff on top, whereas dart is a whole new language to learn.
No Dart compiles to JS. Obviously there is some overhead with transpiling languages, but it's actually pretty small. They have done a good job with it.
http://stackoverflow.com/questions/8815437/why-is-javascript...
> And the size of helloworld.dart.app.js is 102k
> When ran in optimize mode, it generated the following javascript - helloworld.dart.js which is of size 20k
Re: Angular 2: Built on TypeScript
#43Is javascript really so bad? Edit: Why did this question get down voted? It was an honest question...
Not unless you try to make it look like Java.
That feeling you get when you see code with lots of type checking... A lot of engineering effort could be recovered with static typing.
Re: Angular 2: Built on TypeScript
#44Re: Angular 2: Built on TypeScript
#45As if we didn't have enough reason to move on from Angular. Now you need to learn Typescript to contribute or grok the source files?
Re: Angular 2: Built on TypeScript
#46Re: Angular 2: Built on TypeScript
#47Re: Angular 2: Built on TypeScript
#48Why not Dart?
You can interact with JS libraries, but exposing some API to JS-land is a completely different matter.
There are some vague plans to improve this, but there hasn't been much interest, because if you use Dart anyways, you do of course want to use it as the "host" language. It has the tooling and all that jazz. Of course you'd want to use it for as much as you can.
Re: Angular 2: Built on TypeScript
#49Can anyone clarify if TypeScript usage is in place of Dart or in addition to Angular Dart?
Re: Angular 2: Built on TypeScript
#50I don't care what people say Angular totally suffers from the second system effect. http://en.wikipedia.org/wiki/Second-system_effect