Y
Hacker News
new
|
ask
|
show
|
jobs
by
afiori
852 days ago
Function names are scoped to the current namespace. This means that for local closures it is usually better to define functions as variables
$closure = function(){};
instead of
function closure(){}