Acid Coder
May 20, 2022

--

I agree that using this pattern make error handling repetitive, however there is one solid case: typescript

It is impossible to type rejected promise, but with this method, we can type all the error, allow developer to handle error in more precise manner

--

--

Acid Coder

Typescript Zombie. Youtube Pikachu On Acid. (Unrelated to programming but by watching it you become a good developer overnight)