News for hackers. Stuff that matters.
Re:Julia is awesome, but.. by barrkel on Monday December 29, 2014 @09:46AM (#8809945)
I buy the problem with cultural issues around testing and possibly poor quality of the current implementation.

I do think the OP doesn't get exceptions, though. Catching and doing something with an exception should be very rare, and almost never happen in library code, unless you've been infected by Java-itis and feel compelled to wrap implentation exceptions at the API level.

Failures are a function of implementation. The stack trace includes the fact that the API was involved. Further wrapping is usually busywork. If action needs to be taken on failure, the code that must not fail should have an exception handler, which can deal with the failure if possible (necessarily failure modes it can enumerate), and retry or abort as required.

Wrapping is particularly pointless with more functional code. When code is idiomatically passed around, library exceptions are frequently from user code passed in, rather than something the library author could exhaustively list.

There are no comments on this comment yet.