2 ms·
As to #2, I think georgemcbay is talking about where the contents of a short function can be copied into the place where it's called (as with the 'inline' keywo
by andrewem 15y ago
As to #2, I think georgemcbay is talking about where the contents of a short function can be copied into the place where it's called (as with the 'inline' keyword in C or C++), thus avoiding the overhead of a function call [1], whereas it sounds like rabidsnail is talking about inner or nested functions, which you can do in JavaScript [2].
[1] http://en.wikipedia.org/wiki/JavaScript#Functional http://en.wikipedia.org/wiki/JavaScript#Functional
[2] http://en.wikipedia.org/wiki/Inline_function http://en.wikipedia.org/wiki/Inline_function