6 ms·
Dart has pattern matching that is a lot more fleshed out than most C-family languages, you should check it out https://dart.dev/language/patterns https://dart.
by udbhavs 2y ago
Dart has pattern matching that is a lot more fleshed out than most C-family languages, you should check it out
https://dart.dev/language/patterns https://dart.dev/language/patterns
Edit: while there aren’t full ADTs, it does have sealed classes which help with exhaustiveness in matching