JEP 269: Convenience Factory Methods for Collections (original) (raw)

Stuart Marks stuart.marks at oracle.com
Fri Oct 9 01:34:48 UTC 2015


On 10/7/15 2:30 AM, Stephen Colebourne wrote:

Given what we know now vs when the collections library ws created, I think it would be a mistake to allow nulls. Developers that desperately want null in there have other mechanisms to achieve that, not just Optional. I too would argue against Optional in collections, at least until value types exist, but thats a social discussion, not one that can be controlled.

Nicely put.

It seems there's some consensus to disallow nulls. Whew! One bikeshed down, 23,498 to go. :-)

s'marks



More information about the core-libs-dev mailing list