2 ms·
Ty! As the user of said collection: Are the underlying objects inferred when I look at them one by one?
by dgb23 5y ago
Ty! As the user of said collection: Are the underlying objects inferred when I look at them one by one?
- throwaway17_17 5y agoI would not expect the T type in a Collection<List<T>> to be used in a way where inference would be an issue. Typically, the type system would use parametric polymorphism to just deal with the Collection and then probably ‘pattern-match’ on the type inside a list.