JEP 269: Convenience Factory Methods for Collections (original) (raw)
Stuart Marks stuart.marks at oracle.com
Fri Oct 9 01:34:48 UTC 2015
- Previous message: JEP 269: Convenience Factory Methods for Collections
- Next message: JEP 269: Convenience Factory Methods for Collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: JEP 269: Convenience Factory Methods for Collections
- Next message: JEP 269: Convenience Factory Methods for Collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]