News for hackers. Stuff that matters.
Re:All Programming Languages are Wrong (2018) by erik_seaberg on Wednesday February 12, 2020 @03:41AM (#22307056)
I think we're saying the same thing. If f(T) can return U or throw A or B or C, there needs to be a way to declare that Stream<T>#map takes a Function<T, U, A|B|C> and returns a Stream<U> or throws A or B or C. But that sum type A|B|C doesn't exist in Java if there's no common base class.

There are no comments on this comment yet.