Re:Managing Node.js Callback Hell with Promises, Generators ...
by cpeterso on Tuesday February 04, 2014 @10:44PM
(#7181753)
Don't promises address this exception problem because the top level code is calling the then () function, which can then throw an exception to the appropriate caller?
[ Parent
| on HN ]
Re:Managing Node.js Callback Hell with Promises, Generators ...
by jarrett on Wednesday February 05, 2014 @11:00AM
(#7184461)
Yes, I believe so. I was just addressing a the original suggestion, which was to avoid using promises and use vanilla callbacks instead. In that architecture, exceptions don't seem to be workable.