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

I’m not sure that you understand how options work, tbh.

Your example would be nonsensical in any language I’m aware of.



It's just pseudocode. Whether one explicitly expands out the "x" as "x.GetValueOrNone()" or the type system implicitly converts/coalesces any "null" value of "x" to propagate the null to "y" or one has to explicitly write pattern-matching code is not relevant because none of those syntax details affect the author's thesis.




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

Search: