Richard Lynch wrote:
I'd be perfectly happy if PHP's "anonymous" functions had the nice
syntax and no funky weird stuff about closure, a la
eval/create_function, personally.
While the discussion about closures and how to emulate them was
interesting I think Richard hits the nail on the head.
1. Keep it simple as in Wez' patch.
2. Maybe make it return a callback array (object, method) if used with
class to be able to use $this.
3. Maybe add $_SCOPE a la Andi's proposal if you really think it's
worthwhile.
My two cents,
- Chris
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php