3 ms·
> The real value comes in its code generation features, which enable packages to add whatever language features they want Got any eamples of ADTs, pattern matc
by virtualwhys 6y ago
> The real value comes in its code generation features, which enable packages to add whatever language features they want
Got any eamples of ADTs, pattern matching, immutable collections, data classes, named parameters, etc.?
Coming from Scala and TypeScript the Dart language is pretty unappealing wrt syntax and functionality, kind of archaic actually. Flutter looks amazing and have been hoping that Dart would evolve more quickly than it has.
- g5becks 6y agohttps://pub.dev/packages/freezed https://pub.dev/packages/freezed is ADTs, pattern matching, Dataclasses. named parameters are already part of the language. There’s about 4 different packages that provide immutable collections, built_collections might be the most popular.