Re: Comments on non-unique naming convention for closures
| From: | Stas Malyshev | Date: | Sat, 30 Nov 2013 03:46:31 +0000 |
| Subject: | Re: Comments on non-unique naming convention for closures | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70452@lists.php.net to get a copy of this message | ||
Hi!
> Having discussed the options with Dmitry and another contributor off PHP
> Internals list, we have decided to base the generated <internal>
> function name on a hash of the source content between the text pointers
Wouldn't that imply that two closures with the same code would be
identified as the same closure? If so, I'm not sure this is a correct
approach - one can definitely have two different closures (with
different states, different bindings, etc.) having same source text. Or
am I missing something here?
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227