3 ms·
> They do know lisp which has much better ways of dealing with nil. Lisp being mostly a class of dynamically-typed languages, their solution to the issue does
by masklinn 17y ago
> They do know lisp which has much better ways of dealing with nil.
Lisp being mostly a class of dynamically-typed languages, their solution to the issue doesn't really apply to Java. For statically typed languages, the solution adopted by the ML family (as well as haskell) is far superior: encode the notion of "optional" values in an abstract type.