4 ms·
As someone who's used C, C++, Obj-C professionally, with some JS and Python. Dart does most things right. It's heavily C# inspired. I enjoy using it.
by randyrand 4y ago
As someone who's used C, C++, Obj-C professionally, with some JS and Python.
Dart does most things right. It's heavily C# inspired. I enjoy using it.
- toastal 4y agoBut Dart can't do basic functional things like ADTs or pattern matching and has no pipe or composition operators. That puts it in the no-go category for me—and by proxy I never looked at Flutter.
- bmitc 4y agoThese are the number one things keeping me from jumping into Flutter. Flutter is very attractive, but I always pause at Dart coming from F#.
- mhoad 4y agoGood news. It’s about to land. One nice thing about Dart is that they are extremely transparent in how they design the language. You can check out the entire repo here for an example of what I mean but if we are talking about these specific features this is a good place to start Here is the intro: https://github.com/dart-lang/language/blob/master/accepted/future-releases/0546-patterns/goals-and-constraints.md https://github.com/dart-lang/language/blob/master/accepted/f... Here is the spec of what they are currently implementing: https://github.com/dart-lang/language/blob/master/accepted/future-releases/0546-patterns/feature-specification.md https://github.com/dart-lang/language/blob/master/accepted/f... I think they both serve as a really good example of the kind of thoughtful approaches the language team are known for which coming from some different language communities previously I wasn’t accustomed to.
- toastal 4y agoGood to hear. This could make Dart a compile target candidate for a number of languages whose ergonomics better match these concepts, while having good native support from the language.
- bmitc 4y agoThank you for the links! That's exciting, although I'm cautious since it wasn't built around pattern matching. I do know there is already some basic work on Fable having a Dart/Flutter backend, but I haven't used it.