Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24886 invoked from network); 28 Jan 2014 17:11:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2014 17:11:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.247 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.247 imap4-3.ox.registrar-servers.com Received: from [198.187.29.247] ([198.187.29.247:54561] helo=imap4-3.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/94-01140-AD4E7E25 for ; Tue, 28 Jan 2014 12:11:55 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id B739556007B; Tue, 28 Jan 2014 12:11:51 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap4.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap4.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e9ZARwsrLdAf; Tue, 28 Jan 2014 12:11:51 -0500 (EST) Received: from [192.168.0.200] (unknown [176.25.177.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 98DA6560075; Tue, 28 Jan 2014 12:11:50 -0500 (EST) Message-ID: <52E7E4D4.9020002@ajf.me> Date: Tue, 28 Jan 2014 17:11:48 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Sara Golemon CC: George Bond , PHP internals list References: <1796143171.126442.1390903281925.open-xchange@app2.ox.registrar-servers.com> <52E7D5DD.4080608@ajf.me> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Lexical scoping From: ajf@ajf.me (Andrea Faulds) 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/