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;
});
In-place Execution
This would be useful for proper scoping (since we don't have block scope):
PHP Code:
temp.x = function () {
temp.foo = 3;
temp.bar = 50;
temp.baz = 4;
return temp.foo + temp.bar + temp.baz;
}();