News for hackers. Stuff that matters.
Re:Pseudosynchronous JavaScript by xg15 on Thursday June 25, 2015 @06:01AM (#9776868)
I think debugabillity of this would be a huge problem. It's enough of a hassle to single-step through "traditional" asynchronous code. Using the proposed pseudo-synchronous interfaces, the only thing your own code basically does is to specify what should be executed, but not actually executing anything by itself.

At the time things are actually executed, you're almost 100% in library code, making stepping through your program extremely hard.

I'm surprised the article doesn't mention spawn functions or the async/await proposal for ES7[1], which seem to solve the same problem in a way that could be both more efficient and more debug friendly.

[1] http://jakearchibald.com/2014/es7-async-functions/

There are no comments on this comment yet.