Timeline for Why does java.util.ArrayList allow to add null?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 14, 2014 at 7:01 | comment | added | Florian F | But I agree. It is about maximizing functionality. You can use a list that accepts nulls even you don't need them. You cannot use a list that refuses nulls if you need nulls. | |
Sep 13, 2012 at 22:04 | review | First posts | |||
Oct 3, 2012 at 15:46 | |||||
Sep 3, 2012 at 16:49 | comment | added | Andres F. | Disagreed. Allowing too much is harder to correct once the misfeature has seen widespread use. If language designers allowed nulls at a later stage, it wouldn't break existing programs, but the opposite is not true. | |
Sep 3, 2012 at 15:45 | history | answered | NiteRain | CC BY-SA 3.0 |