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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Acid Coder
Acid Coder

Written by Acid Coder

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

Responses (1)

Write a response

Interesting idea.