> > 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..." >
No, Either is a class rather than being an int error code, so it can have methods to abstract this stuff out. You don't have to write repetitive code using Either. > > -- > 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]<javaposse%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > -- 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.
