You mentioned it could possibly short circuit, but then theorized that this
couldn't possibly be the case.  I would call this totally incorrect.  I can
mention the possibility that C++ is my favored language and then derisively
snort.

Also, the key here is that with either, you string together a set of methods
and defer dealing with the issue until you are ready, possibly in another
stack.

Yes exceptions make you deal with problems immediately and in the current
stack.  That works well for critical issues.  Some "exceptional"
circumstances in java are not very exceptional.  This process is my favored
to deal with those as i can even embedded processing in a library and allow
the user to eventually deal with the exception.

Remember that although execution continues, nothing that assumes the
existence of the contained data does continue.  Eventually you have to try
to extract the either and that is when the issue is dealt with.

This pattern is even seen with java's Future.  However using Either allows
you to abstract the idea to more areas of your codebase.

Also, while you may not have been totally incorrect i feel most of your
statements around Fp are purposely misrepresentative, hence my strong
replies.

On Sep 23, 2010 12:17 AM, "Cédric Beust ♔" <[email protected]> wrote:



On Wed, Sep 22, 2010 at 5:51 PM, Josh Suereth <[email protected]>
wrote:
>
> Actually, that s...
So it's still being called (and I took the precaution to say that I wasn't
sure whether short circuiting was happening or not).

Regardless, my point still stands: execution of the statements that follow
continues, so calling my claim "completely false" is a bit of an
exaggeration, isn't it?


-- 
Cédric


-- 
You received this message because you are subscribed to the Google Groups
"The Jav...

To post to this group, send email to [email protected].
To unsubscribe from this group, sen...

-- 
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.

Reply via email to