Hacker News new | ask | show | jobs
by praeclarum 5468 days ago
My reading of the title followed the first commenter.

For years we've been begging for locally bound function declarations so we don't have to explicitly pass variables to callbacks and so we don't pollute the global namespace with worker function names.

This article then proceeds to throw all that away so we can have named functions. Worse, you can have names and locality that he ignores:

    function bigGuy() {
        function littleWorker() { /* stuff */ }
        begin(littleWorker);
    }
So my question, why do this? What are the benefits?