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

Languages like Haskell, Swift, and Rust use an optional type[0] for nullable things. Most things don't need to be nullable, and by being explicit about it in your type you convey your intent - ie. 'this thing might fail, and you must handle it if it does'.

- [0]: http://en.wikipedia.org/wiki/Option_type



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

Search: