something i'm missing from Javascript is the ability to give names to closures,
this both gives closures the ability to reference themselves, but it
also makes for meaningful stack traces, eg this is legal javascript:

(function TheClosuresLocalName(){console.log(TheClosuresLocalName);
throw new Error("look at my stacktrace!");})();
- the name is optional, and only visible inside the closure itself,
and unfortunately this is not legal in PHP, i wish it was.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to