pkt1583 / functionaljava

Automatically exported from code.google.com/p/functionaljava
0 stars 0 forks source link

fj.data.Option.Some's constructor should not accept null as a parameter #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
fj.data.Option.some(null) results in Some of null which is an abomination. 
One of the goals of using the maybe monad is to avoid null pointer exceptions.
Some's constructor should not accept nulls and throw an exception.

Original issue reported on code.google.com by pawel.kr...@gmail.com on 19 Oct 2011 at 1:15