by akaivola · 12y ago · 0 comments
Code generation is in my experience a clear indication that the problem you have has not really been understood.
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.