3 ms·
JS is getting nearly every Dart feature with ES6 and ES7 and whatever typing system makes it into the standard. There is massive JS innovation going on if you
by bhouston 12y ago
JS is getting nearly every Dart feature with ES6 and ES7 and whatever typing system makes it into the standard. There is massive JS innovation going on if you look at the future standards coming.
- msie 12y agoThey should take the bad stuff out of JS too then.
- bhouston 12y agoThey are via Strong Mode and SoundScript: https://developers.google.com/v8/experiments https://developers.google.com/v8/experiments :)
- ahoge 12y ago> JS is getting nearly every Dart feature with ES6 and ES7 With ES8 or ES9, maybe. By the way, optional named arguments with default values look atrocious in ES6. ES6: function foo({a = 1, b = 2} = {}) {…} Dart: foo({a: 1, b: 2}) {…} Dart also supports things like factory constructors, named constructors, method cascades, operator overloading, SIMD, arbitrary large integers, mixins, implicit getters/setters, implicit interfaces, enums, 'a' - 2 is a type error, [0][-1] is a range error, metadata annotations, and of course also optional types. ES7 might include SIMD and operator overloading. Another key point is that Dart's doc comment syntax is standardized. It also has an official style guide, a formatter, and a package manager. To me, these things are also very important features.
- spankalee 12y agoDart's just as important for what it removes or changes in a breaking way as for what it adds.