|
|
|
|
|
by grumpyprole
1527 days ago
|
|
Ok, it looks like they've now retrofitted null safety, but why wasn't it designed in from the start? I can't help but feel this was always a Java-clone to avoid litigation, not any kind of innovative project. 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? |
|
Frankly, I haven't needed to implement such a basic data structure myself in Dart, but here's a whole book of examples of implementing common data structures[1]. They look pretty straight forward to me. You can also take a look at the Dart language tour.[2]
[1]: https://www.raywenderlich.com/books/data-structures-algorith...
[2]: https://dart.dev/guides/language/language-tour