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? parent gergo_barany 2 years ago
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?