News for hackers. Stuff that matters.
Re:When Zig Is Safer and Faster Than Rust by udbhavs on Monday December 30, 2024 @10:00AM (#42549841)
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

Edit: while there aren’t full ADTs, it does have sealed classes which help with exhaustiveness in matching

There are no comments on this comment yet.