News for hackers. Stuff that matters.
Re:Java Functions: Every Java FunctionalInterface You Want by akaivola on Saturday November 08, 2014 @04:15AM (#8576412)
I had to register for this. You have pretty much tried to invent Either via code generation. I suggest you look at functionaljava's Either for further reference.

Code generation is in my experience a clear indication that the problem you have has not really been understood.

Re:Java Functions: Every Java FunctionalInterface You Want by BrandonM on Saturday November 08, 2014 @04:41AM (#8576446)
I understand Either, and I would absolutely prefer to be using it. That was going to be one of my follow up projects, and it would depend on this one.

I took a look functionaljava, and it doesn't provide the following:

    Either<IOExeption, String> line = Either.from(reader::getLine);
For that, you would need to have a signature like:

    static <E extends Exception, R> Either<E, R> from(NilToObjE<R, E> f);
That's exactly what this library gives you.