News for hackers. Stuff that matters.
Re:Background: how we got the generics we have (2020) by zeroimpl on Friday April 02, 2021 @05:25PM (#26676169)
I’d just solve this by passing in a Class<S extends Iterable<R>> arg and making the returned list be an instance of this class, instead of forcing the input collection type to be the same as the output collection type.
Re:Background: how we got the generics we have (2020) by mrkeen on Saturday April 03, 2021 @04:16PM (#26684359)
Then I can't chain method calls.

    foo.doSomething()      // returns Iterable.
       .doSomethingElse(); // Iterable doesn't implement doSomethingElse();