|
|
|
|
|
by ZeroCool2u
1530 days ago
|
|
Some fair points here. The differences that I've experienced have generally seemed very positive and it feels like significantly less boilerplate than Java. As for Tony Hoare's billion dollar mistake, I'm not sure if you've seen the information about Sound Null-Safety[1], but it's actually one of my favorite features about the language. Static analysis in Dart feels a little bit like Rust in that as you write code your IDE can provide smart suggestions and bugs are often found as you write instead of when you compile. Finally, I'll take the pub.dev[2] toolchain and build system over anything out there today besides Cargo. Plus, compiling to a single executable file without any dependencies that have to be installed on the deployment target is great. "There are many better Java++ languages out there."
Any in particular you'd suggest? I'd definitely give it a shot if it blows Dart out of the water![1]: https://dart.dev/null-safety [2]: https://pub.dev/ |
|
Kotlin looks like a good Java++ language (especially for Android); and Typescript would be the most pragmatic choice for web. But again, Dart is going to have to keep up even with modern Java.
Regarding boilerplate, can Dart define a simple data class with equals and hashcode in one or two lines?