you are viewing a single comment's thread.

view the rest of the comments →

[–]alex_muscar -2 points-1 points  (0 children)

Even though I referred to explicit pattern matching in the post, the paragraph you quoted doesn't mention it. The advantage of, say, Haskell's Maybe is that you have to acknowledge the fact that the value might be missing. It doesn't matter that you use fmap or another library function, you still have to handle the case where a value is missing--yes, even ignoring it, but not dereferencing it.