Comment

Comment by amelius

I'm wondering: why not make every returned value implicitly of type Either with Left some generic type?

In most cases, I'm not interested in the types of exception that can be thrown. And when I need the type of an exception, a runtime check suffices in almost all cases.

Let's not make exception handling more cumbersome than it needs to be, and only invoke verbose mechanisms when necessary.

parent amelius 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton