On 24/09/2015 07:39, Marco Pivetta wrote:
  - I'm still conflicted on automatically importing all of the scope into
the closure: while it is working for functional languages, that's where
most of the headaches come from in languages such as javascript.

The automatic import IMO isn't as much an issue as in JS, because it imports by value and not by reference as is done in JS. If you do $foo = 'bar'; in your closure and suddenly someone in the outer scope defines $foo as well, you aren't going to overwrite that outer scope value. Therefore the risks for interferences are reduced quite a bit.

Cheers

--
Jordi Boggiano
@seldaek - http://seld.be

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

Reply via email to