Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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(){}



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: