12 ms·
Dart's operator overloading alone makes it easier to write clear and concise code than in JS, e.g. for map and list types. // dart var listA = listB +
by _greim_ 12y ago
Dart's operator overloading alone makes it easier to write clear and concise code than in JS, e.g. for map and list types.
// dart
var listA = listB + listC;
// js
var listA = listB.concat(listC);
That's just the tip of the iceburg. Overriding the [] accessor for custom list types opens up whole worlds of possibilities.