News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by Fellshard on Wednesday June 19, 2019 @09:07AM (#20222919)
This argument doesn't hold with me, because while try-catch is very clear in what it does, the exception-/throwing/ mechanism is not. Try-catch is only useful insofar as you know exactly what you're trying to catch. Anything else is basically undefined behaviour; a jump straight to your catch block from anywhere in the application, as far as your intuition is concerned, a far cry from the controlled nature of loops.

There are no comments on this comment yet.