2 ms·
> The use of fibers/coroutines as built-in error boundaries Isn't this roughly what JavaScript does with Promises?
by brundolf 6y ago
> The use of fibers/coroutines as built-in error boundaries
Isn't this roughly what JavaScript does with Promises?
- slightknack 6y ago'roughly' ;)
- sterlind 6y agomy issue with Promise-style exception boundaries is the lack of type checking or explicitness, especially since `catch(Exception)` is discouraged in C#, specifically (since e.g. you probably want to panic on null refs but handle a socket exception.) in my ideal, exceptions could only be thrown/caught at the async/await boundary because only there should you have real side effects, and there should be structure, but at that point I'm reinventing Haskell's monads.