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).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of new approach

new approach

Photo of error handling

error handling

Related news:

News photo

FranShares has a new approach to passive income, letting people invest in franchises for as little as $500

News photo

Why planetary problems need a new approach to politics Essays

News photo

World’s first mouse model with fully functional human immune system developed | This new approach may offer a viable alternative to the use of non-human primates in immunological and microbiological research.