News for hackers. Stuff that matters.
Re:Flutter for Linux by virtualwhys on Wednesday July 08, 2020 @10:00PM (#23776278)
> 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.

Re:Flutter for Linux by g5becks on Wednesday July 08, 2020 @10:51PM (#23776509)
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.