Yes... In such a language, it should be "easy" to wrap methods that do not use either or apply them within the either using map rather than Flatmap operation. (different names are common here too).
Now, there is a distinction here in terms of what should be captured in an either vs. handled in an exception. I would argue that the two mechanisms complement each other. neither one can "replace" the other. Finally, i know from Arm proposals and my own scala-arm library, that these approaches can very much complement each other, and will work rather well. On Sep 23, 2010 6:20 AM, "Ricky Clarkson" <ricky.clark...@gmail.com> wrote: Reinier, Sure you can: for (String s: either.left()) otherMethod(s); On Thu, Sep 23, 2010 at 11:11 AM, Reinier Zwitserloot <reini...@gmail.com> wrote: > > ... but you ... -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javapo...@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.