Re:Toward Go 2
by hdhzy on Thursday July 13, 2017 @03:35PM
(#14764446)
> Java`s generics have had issues due to use site variance
Use site variance can be really powerful when you're dealing with invariant data structures like Lists. You can then treat them like covariant or contravariant depending on a particular method call at hand.
Use site variance can be really powerful when you're dealing with invariant data structures like Lists. You can then treat them like covariant or contravariant depending on a particular method call at hand.