3 ms·
Why? "You should donate all your money to praeclarum." "Why?" "Because I said so."
by praeclarum 15y ago
Why?
"You should donate all your money to praeclarum."
"Why?"
"Because I said so."
- DTrejo 15y agoPlease elaborate on your question.
- praeclarum 15y agoMy 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?
- statictype 15y agoI think the tone of the title is ambiguous. After reading the article, I felt it was more of "[Here's an example of] Avoiding Nested Callbacks" instead of "Avoiding Nested Callbacks [is important and something you should do]"