News for hackers. Stuff that matters.
Re:Is try..catch really useful? by mlmitch on Sunday September 02, 2018 @05:28PM (#17898769)
I ended up making an account for this one. Exceptions are a section in one of my favourite blog entries:

http://blog.ploeh.dk/2015/04/13/less-is-more-language-featur...

Their argument is that Exceptions are GOTOs in disguise and point to the use of sum types.

I have found this to be good advice when using Java 8+. Composing Optional<?>, Either<?, Exception>, or CompletableFuture<?> has provided sufficient tooling for handling failure scenarios.

I also find that Exceptions slow down my reasoning about code, because they are side effects - see functional programming.

Re:Is try..catch really useful? by emodendroket on Monday September 03, 2018 @01:08AM (#17900458)
The Try pattern is good but if you are using a whole bunch of libraries/existing code that doesn't use it already it's just going to be confusing to introduce it.