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

Or, use Maybe/Option and have as many levels of nonexistence as you want.

    Option[Option[Option[T]]]
Not that it would necessarily be very useful, but choosing 2 values of nonexistence is very arbitrary.

Usually zero or one level of nonexistence is enough.



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

Search: