|
|
|
|
|
by mrkeen
590 days ago
|
|
> he had thought of a different way to decompose the interfaces for collections that had less need for variance, with read and write separated, but he thought there were too many interfaces and they would confuse people. So Josh Bloch opted against separate read/write interfaces. > the thing is when you’re only consuming a collection, a lot of the types have the same semantics, so they don’t need separate read interfaces, and the variance declarations are much simpler. And you opted against separate read/write interfaces. |
|