Nulls
Doug Lea
dl at cs.oswego.edu
Sat Sep 22 10:16:06 PDT 2012
On 09/22/12 13:04, Brian Goetz wrote:
> I would rather not punish everyone because some idiot puts nulls in a collection
Unless that punishment is reduced to essentially nothing
(even (especially?) if it leads to even worse punishment for offenders).
Remember that JVMs must do null checks all the time anyway.
Keeping track of whether you've even seen one, and thus must
throw away and/or repack a destination seems too cheap to
stand in the way of having a nicer rule.
-Doug
More information about the lambda-libs-spec-experts
mailing list