I was recently working hacking on something in Firebug console and remembered about expression closures — a language addition, introduced in Mozilla’s JavaScript 1.8. The concise explanation on MDC captures the essence of expression closures: This addition is nothing more than a shorthand for writing simple functions, giving the language something similar to a typical Lambda notation. […] This syntax allows you to leave off the braces and ‘return’ statement - making them implicit. There is no added benefit to writing code in this manner, other than having it be syntactically shorter. And that's exactly what I used it for — to quickly experiment with something, shortening function expressions to save on typing.
More
Support this project and others with 1-click micro-donations
