Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think that you can replace almost any If else with pattern matching. Pattern matching makes type checks easier, which if you are really heavily using types through your program, makes pattern matching even better.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: