Advertisement
Guest User

Untitled

a guest
Nov 21st, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Hi,
  2.  
  3. I'm not sure this was emphasized enough, so I'm adding my two cents there.
  4.  
  5. Before the generators, typed or conditional catches were not really essential. Barely some edge cases needed to use try/catch in JS code.
  6.  
  7. With generators however, try/catch become the only sane way to handle errors. It was shown in this thread before why. And as they currently stand, they are in no way satisfying enough for generators in production code, except with some boilerplate. This boilerplate would be easily skipped by implemented conditional catches, as Firefox already implements.
  8.  
  9. What's stopping people from adding conditional catches in the ES6 proposal?
  10.  
  11. W.r.t the pattern matching, concerning this issue, it looks like we're trying to use a nuclear cannon when a knife would be enough.
  12.  
  13. Am I off somewhere? I may very well be, but it sounds like
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement