Get the latest tech news
A new approach to error handling
There are two philosophies to error handling: - Implicit error handling - Explicit error handling Let's summarize them. Implicit error handling - Optimize for happy path.
To handle failure cases, one must capture the exception or recover from the panic. Easier to write correct programs, as it focuses on handing failure cases well. Turn on explicit error handling (so you don't miss any).
Or read this on Hacker News