Comment

Comment by gergo_barany

> Yes, you will be able to get the compile-time safety by immediately using switch on the return value, but what if you don't?

Then you switch on the value at some other point in time. It's still AsyncReturn<V>. Why do you think safety would get lost?

> Exceptions are a completely sound solution, failures as return values can easily escape detection.

How so?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton