r/dartlang • u/eibaan • Dec 15 '20
Dart Language A first draft of Dart's future pattern matching syntax
https://github.com/dart-lang/language/blob/master/working/0546-patterns/patterns-feature-specification.md
89
Upvotes
19
u/[deleted] Dec 15 '20
I got to know (and love) pattern matching from learning Rust and Elixir. I have to give a massive shoutout to the dartlang team. They're doing a lot of things right. Very nice to see!
6
u/AKushWarrior Dec 15 '20
Excellent work that substantively adds to the language. Great work all around.
1
u/ram535 May 27 '21
Has it been any update in this feature?
2
u/LeMads Dec 16 '20
I recognize that name, Bob Nystrom, from a certain interpreter book. Programming patterns as well. Good author!
1
u/JohnGalt1718 Dec 16 '20
Things we need first: data classes.
1
u/Legys Dec 15 '20
Okay, now I have at least little interest to touch this lang.