Re: Lexical scoping
| From: | Andrea Faulds | Date: | Tue, 28 Jan 2014 17:11:48 +0000 |
| Subject: | Re: Lexical scoping | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71686@lists.php.net to get a copy of this message | ||
On 28/01/14 16:28, Sara Golemon wrote:
Figure out how that looks to the runtime and we can start a conversation. Until then, you're asking for something that PHP's engine is ill-equipped to introduce.Is that really the case? If we don't permit variable shadowing here (i.e. you cannot do "$var = x; { let $var = y; } var_dump($var);"), then it would be as simple internally as unsetting the variable at the end of the block. -- Andrea Faulds http://ajf.me/