Re:Flutter for Linux
by satvikpendem on Wednesday July 08, 2020 @06:58PM
(#23775174)
Dart is...fine. The real value comes in its code generation features, which enable packages to add whatever language features they want even if the language maintainers don't (yet), such as algebraic data types, functional programming features, etc. You can argue this as being good or bad for future maintenance but it's nice to have the ability to add to the language.
[ Parent
| on HN ]
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.
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.