| Dart is better in some ways and worse in others. 1. It has an actually sound type system. 2. The language and standard library are waaaaaaaay ahead of Javascript. 3. The tooling is top notch. Better than JS/TS. But on the other hand: 4. Way smaller ecosystem. 5. Debugging is worse if you're compiling to JS. The fact that the code you run is basically identical to the code you write in TS can be a big advantage. Only really applies for web pages though. 6. Type unions are way nicer in TS. 7. Non-nullable types interact badly with classes. It can make writing methods correctly really awkward - you have to explicitly copy member variables to locals, modify them and then write them back. 8. Way smaller community. |