Hacker News new | ask | show | jobs
by mdpopescu 3625 days ago
The main advantage of pattern matching is that you can't forget it. If you forget to check for null, the customer complains that the program crashed. If you forget to handle the cases in a pattern, the compiler complains to you.