Funny timing! I've been using CasperJS all weekend and came across this same example snippet in CoffeeScript.
I went ahead and did it in JavaScript and yep, like the author accurately points out, it's messier.
The example snippet is has way too much outright nesting for my tastes.
At the end of it, I ended up using a couple modules to handle the codeless function wrappers and used function references instead of anonymous functions.
That seems clearer to me in either syntax than function inception.
Hmm, the coffeescript version is certainly a bit shorter, but it seems less readable to me... at best the C.S. version save a few characters because of it's shorter lambda notation, and lack of explicit delimiters, but especially the latter reduces readability.
I went ahead and did it in JavaScript and yep, like the author accurately points out, it's messier.
The example snippet is has way too much outright nesting for my tastes.
At the end of it, I ended up using a couple modules to handle the codeless function wrappers and used function references instead of anonymous functions.
That seems clearer to me in either syntax than function inception.