|
|
|
|
|
by gergo_barany
739 days ago
|
|
> 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? |
|
I wouldn't say it's "easy", and it hasn't really been a problem in production. But maybe this is where the parent post is going.