Some notes on Elvis and Other Null-Safe Operators
scolebourne at joda.org
Mon May 18 04:37:11 PDT 2009
2009/5/18 Schulz, Stefan <schulz at e-spirit.de>:
> Joseph D. Darcy wrote:
>> A belated reply, in general and for null handling in particular,
>> addressing the problem with libraries is preferable to addressing the
>> problem with a language change.
> Just as a side note: while such a library based solution for elvis is formally possible, without some closure like construct, the advantage of evaluating the RHS expression on demand only will be lost.
I'd also note that libraries have been available for elvis for some
time, yet they are not especially widely used. All the evidence is
that developers would rather code the if statement themselves than
import a library.
More information about the coin-dev