2 ms·
If you come from ML or Haskell and start using boost or Java's option, you actually feel ripped off. Some people claim it's a sort of documentation denoting 'i
by toolslive 11y ago
If you come from ML or Haskell and start using boost or Java's option, you actually feel ripped off.
Some people claim it's a sort of documentation denoting 'intent', but I don't want documentation. I don't want options to infect the whole codebase, I just want to pattern match once and extract the value, and never have to check again for None or null.
The problem in Java is the type system has references.
X static use_it(X x){ ....}
really has a signature something like this:
use_it : X ref -> X ref
no little library is going to fix that.