Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
kobeya
8y ago
0 comments
Share
Or to encapsulate a nil in a Maybe monad, so that you only have to deal with it in contexts where you explicity denote acceptance of nils. Then the type system won't let you get away with ignoring the possibility of a nil.
undefined | Better HN
0 comments
default
newest
oldest
p4lindromica
8y ago
you can do a maybe monad without nil types by substituting nil with a single-valued singleton type
j
/
k
navigate · click thread line to collapse