4 ms·
The big difference between Dart and TypeScript is that Dart has a standard library for DOM. But I'm not sure how that's different than .d.ts files for DOM tha
by msoad 10y ago
The big difference between Dart and TypeScript is that Dart has a standard library for DOM.
But I'm not sure how that's different than .d.ts files for DOM that TypeScript has in its core. After all DOM code is translated to JS code 1:1. Maybe Dart does more magic?
- zoechi 10y agoDart has more polyfill stuff built-in. This is IMHO a big advantage when I see all the related StackOverflow Angular2 TS questions. A downside is that it is sometimes a bit more cumbersome to work around if something is not fully polyfilled by Dart and you have to work around "manually".
- isoos 10y agoTypeScript is evolving towards the same language and tooling goals as Dart has already achieved. I have worked with both, and I find TypeScript tooling to be years behind Dart (event with recent improvements of type inference and e.g. VS's intellisense). The main reason TypeScript got more adoption was the fact that it was built on top of JavaScript, and people could easily start mix-and-match with their JS code. While that is great for easier adoption, it may not protect your engineers on the same level as Dart does.