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

yes! Or using function heads, though for cases with many errors this can end up being less clear.

Rust's `match` also does an ok job



Match isn't really comparable to Elixir's with. The Elvis operator is closer, you can have a chain of commands with early exit.




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

Search: