4 ms·
Therefore the function has its own failure modes and also a set of extra ones from the execution framework, folded into an exception hierarchy?
by JonChesterfield 3y ago
Therefore the function has its own failure modes and also a set of extra ones from the execution framework, folded into an exception hierarchy?
- IshKebab 3y agoThat is how exceptions always work in these sort of languages. I think it's one of the reasons exceptions suck as an error mechanism (checked exceptions are the "answer" but hardly anyone uses those - so few in C++ that they were removed from the language!), but it isn't a new problem introduced by this framework. In any case Typescript doesn't have checked exceptions so you're pretty much stuck with "any error can happen anywhere" in Typescript whether you use this framework or not.