Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40988 invoked by uid 1010); 18 Jul 2007 18:39:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40973 invoked from network); 18 Jul 2007 18:39:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2007 18:39:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=jaenecke@gmx.li; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jaenecke@gmx.li; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.li designates 213.165.64.20 as permitted sender) X-PHP-List-Original-Sender: jaenecke@gmx.li X-Host-Fingerprint: 213.165.64.20 mail.gmx.net Linux 2.5 (sometimes 2.4) (4) Received: from [213.165.64.20] ([213.165.64.20:55181] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/A9-01090-A4E5E964 for ; Wed, 18 Jul 2007 14:39:08 -0400 Received: (qmail invoked by alias); 18 Jul 2007 18:39:03 -0000 Received: from p508DE7F2.dip.t-dialin.net (EHLO [192.168.2.21]) [80.141.231.242] by mail.gmx.net (mp001) with SMTP; 18 Jul 2007 20:39:03 +0200 X-Authenticated: #3998290 X-Provags-ID: V01U2FsdGVkX1/j1hlBEvTjam3dkRp1AE7BDpCprLp4DKxyRkkmZK wjXTQVWglwt4Kq Message-ID: <469E5E3C.6060807@gmx.li> Date: Wed, 18 Jul 2007 20:38:52 +0200 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: internals@lists.php.net References: <469E5B35.2030602@keryx.se> In-Reply-To: <469E5B35.2030602@keryx.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: [PHP-DEV] Let blocks From: jaenecke@gmx.li (=?ISO-8859-1?Q?Daniel_J=E4necke?=) 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 >