The Closed By mechanism seems so obvious in retrospect. What a great improvement to stability of applications overall by embedding that simple and error retardant pattern into the language.
I'm trying to understand why the collections syntax would create only immutable collections? Anyone know why so?
It theoretically permits optimizations where multiple parts of the code using the same, say, string literal can refer to the same literal. I don't believe for a moment that this is actually happening in Java, but immutable literals are not uncommon in this class of language.
I'm trying to understand why the collections syntax would create only immutable collections? Anyone know why so?