3 ms·
Ha! I thought about doing a tricky thing with wildcards vs missing generics. What gets even more wild is, for reasons I really don't understand, when a missin
by cogman10 3y ago
Ha! I thought about doing a tricky thing with wildcards vs missing generics.
What gets even more wild is, for reasons I really don't understand, when a missing generic makes its way into a generic pipeline it seems to have the tendency to erase other generics. (IE, `list.stream().map((f)->new Map())` does weird things with the stream as it gets more complex.). You can throw in "What's the difference between List<Object>, List<?>, List, and List<? extends Object>" for good measure :D