Quote:
Originally Posted by WhiteDragon
Inline Closures
These would be useful to make code a bit cleaner:
PHP Code:
foobar(function (temp.a, temp.b) {
return temp.a + temp.b;
});
|
You mean instead of doing this?
PHP Code:
temp.func = function (temp.a, temp.b) {
return temp.a + temp.b;
};
foobar(temp.func);