Doug Lea dl at
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.


More information about the lambda-libs-spec-observers mailing list