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

> You couldn't do that in an expression, as it wouldn't type check without a value for the None case.

Of course you could. If there is no `else` (which there can be, fwiw, just as the else case is optional in a regular if/else expression), the value of the None case is Unit: http://is.gd/Zdgc3D



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

Search: