Settings

Theme

Why Scala’s Option and Haskell’s Maybe types won’t save you from null

beust.com

3 points by nirav 16 years ago · 1 comment

Reader

niravOP 16 years ago

It appears that his primary assumption, NPE prevention, on Options is based on blogs rather than actual good quality code.

If you look at how Options are used in Scala core lib, you wouldn't make such claims and you will definitely not use it only for null checks.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection