News for hackers. Stuff that matters.
Re:Managing Node.js Callback Hell with Promises, Generators ... by gfxmonk on Tuesday February 04, 2014 @04:44PM (#7180438)
You may find StratifiedJS pleasing: http://onilabs.com/stratifiedjs

You wouldn't even need that one callback, just:

return find_largest(get_stats(read_files(dir)));

Exceptions are propagated as you would expect from synchronous code, despite being async under the hood.

There are no comments on this comment yet.