3 ms·
The big advantage of Dart over JS is the type system. Switching to Go would mean throwing that away.
by lmm 12y ago
The big advantage of Dart over JS is the type system. Switching to Go would mean throwing that away.
- nickik 12y agoPureScript and ClojureScript all have type systems better then the one in Dart. The simplest ways to get a type system is TypeScript. Not sure how I how it compares.
- lmm 12y ago"Better" is subjective (and I certainly wouldn't consider any dynamic system to be better than dart's) - Dart hits a certain sweet spot IMO, being simpler than a typeclass-based approach but far more usable than Go or Java. TypeScript is pretty nice but gradual, which is its own set of tradeoffs. Dart has other selling points than the type system, sure, but degrading it to Go-style types would be a serious loss.