Re: Let blocks

From: Date: Wed, 18 Jul 2007 18:37:04 +0000
Subject: Re: Let blocks
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31060@lists.php.net to get a copy of this message
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?
I personally am not convinced that PHP has any need for convoluted scoping rules that "let" creates. What would be a use case that would require such function? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31060) next »