Link? It could be possible for frequent exceptions, but the point of exceptions is that they are exceptional. EOF, IOOBE, numeric exceptions and many others are not the norm.
I'm not sure I'm understanding this correctly... wrapping a result in Either adds a cost (potentially optimised) to every single successful case. Throwing an exception adds a larger cost to every single failure.
-
-
This Tweet is unavailable.
-
Does the short-circuiting require an allocation, though?
End of conversation
-
-
-
But if those exceptions are terminal, or at least short-circuiting in some way, it seems (assuming the JSON example) like it would be impossible to have enough exceptions thrown in a DOS attack to outweigh the penalty of the additional allocations for Either.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Well, you should always optimise your most common path (be it happy or sad doesn't matter), so it will depend, kind of, on use-case
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
we cannot discuss these topics under such conditionals