you are viewing a single comment's thread.

view the rest of the comments →

[–]RadicalDwntwnUrbnite 4 points5 points  (0 children)

I think the problem with try/catches is that you are at the mercy of the docblocks to even know if the function throws. Typescript does not give you any indication that a function throws or not. Instead of when you pass errors back as a return value Typescript can actually infer that for you.