Comment

Comment by flowerlad

> Errors as values is a far superior approach to exceptions.

Why is that? I have never seen a cogent explanation for why this is the case.

I can tell you why exceptions (as implemented in Java) are cool: You can write code as if every function call is successful, as opposed to adding a line (or more) of error handling code after every function call, which makes it harder to follow the logic.

parent flowerlad 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton