monadic option in java
May. 1st, 2010 11:05 pmTried to write something like option, to use in monadic context, in java 5.
Unless you know what I mean... the idea is, to have Option<T> class such that would be good to replace NullObject and null, monadic style. That is, like this:
Is anything missing?
( Read more... )
Unless you know what I mean... the idea is, to have Option<T> class such that would be good to replace NullObject and null, monadic style. That is, like this:
for (String x : Option.some("this is a string, ok?")) { ... }
Is anything missing?
( Read more... )