On Tue, Sep 21, 2010 at 6:20 PM, Miroslav Pokorny < [email protected]> wrote:
> > Without exceptions how else is the file system supposed to communicate all > the different causes of failure? Basically what your describing is what we > have today with File.delete and friends where it's a pain to figure out why > a delete rename and similar actions fail. Half the time all yiu want is > message that a human can read etc. By not throwing an exception you've just > made my code larger all so I can call an api to get a message. Every other > solution except for an exception is more verbose and requires state and s > definitely less functional. In goes the filename, give me a file or > complain. How can that possibly be made simpler ? > What Miroslav said. Kevin seems to be quite fond of Either and so everything looks like a nail to him, but while Either has its uses, it's a terrible way to report errors. Witness what it looks like in Go where every other line of code is basically "file, err = foo(); if err..." -- Cédric -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
