Re: Let blocks
| From: | Daniel Jänecke | Date: | Wed, 18 Jul 2007 18:38:52 +0000 |
| Subject: | Re: Let blocks | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31061@lists.php.net to get a copy of this message | ||
I don't get the point of it. IMO this will only add another level of
confusion to sourcecode; unless someone has a real good example (better
than those in the posted link) where this technique is required I cannot
see which benefit this feature adds.
regards
danielj
Keryx Web wrote:
> Hi again!
>
> Now that namespaces seem to be on their way into PHP 6 I wonder if
> let-blocks, as in JavaScript 1.7+, ever has been considered for PHP, to
> hide global variables from each other?
>
> If so, can someone point me to the discussion?
>
> For those that might have missed JS 1.7:
>
> http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7#Block_scope_with_let
>
>
> Lars Gunther
>