News for hackers. Stuff that matters.
Re:Wait.for: Sequential programming for Node.js (beta) by aaronyo on Friday August 23, 2013 @04:27AM (#6262340)
Promises help with this quite a lot. http://promises-aplus.github.io/promises-spec/ What 3.2.6.2 means is that any thrown exception is caught and turned into a rejected promise which will bubble up (across async boundaries) until it gets to a rejection handler.

I haven't had too much experience with Domains, but I believe they are generally used for courser grain error handling (because it's a bit verbose to attach them all over the place). E.g., to catch most errors (it's no guarantee what 3p libs do to your context) generated in fulfillment of a particular web request.

Re:Wait.for: Sequential programming for Node.js (beta) by gruseom on Friday August 23, 2013 @12:41PM (#6264668)
Can promises guarantee that condition with only library code? or do you still have to have try/catch in the application code, and if so where?

Also, do any of the promises libraries solve the backtrace problem, and if so how do they do it?