Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39053 invoked from network); 19 Jun 2008 15:21:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2008 15:21:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.154 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 72.14.220.154 fg-out-1718.google.com Received: from [72.14.220.154] ([72.14.220.154:41407] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/1A-10717-6697A584 for ; Thu, 19 Jun 2008 11:21:10 -0400 Received: by fg-out-1718.google.com with SMTP id 16so471653fgg.23 for ; Thu, 19 Jun 2008 08:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uXMSHmaD/b0AnNN1atN/t8GDRilpcnBFQH19uDg7j4c=; b=XxR4ZC+qBVGq87QUIdmlsRuYaeq6J1J9Z30qIBwmvl/lAj0Kzg2Or4ciQoHcoG0f+0 QjGcVmuYfNnzuLPAZ+L9vsnTackoFtrIWl2Rn6/U9jMOl8uJVijxS5PP+UFeEGyJF22j Dmsmqa8hjsQlcBOdp0QJWQO5AnvasP+68V2QM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MqCPM2N3NUGbK6rpYgGMuJdKRGB0vjGaT/CYDV8dWI66Y08IMwSmg1vm1XbUOPaKyg HiviGQrOVoyGVyL7vCBE7PkYahnZZZLUgtsGAlbnbUZE+tFPQgNUupzsPYbSSvPKX5GG Iwlm5B/axO3lLNkWf2KA3j7dW5M2i6L9xgaIg= Received: by 10.78.173.20 with SMTP id v20mr1085958hue.100.1213888867111; Thu, 19 Jun 2008 08:21:07 -0700 (PDT) Received: by 10.78.195.3 with HTTP; Thu, 19 Jun 2008 08:21:07 -0700 (PDT) Message-ID: <98b8086f0806190821v2e3c9d74jebfdcbc970ebedff@mail.gmail.com> Date: Thu, 19 Jun 2008 17:21:07 +0200 To: internals@lists.php.net In-Reply-To: <485A6F0C.4090809@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> <485A35A0.9050602@zend.com> <485A63C7.5020600@gmail.com> <485A6F0C.4090809@zend.com> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: troelskn@gmail.com ("troels knak-nielsen") On Thu, Jun 19, 2008 at 4:37 PM, Dmitry Stogov wrote: > I don't like "lexical" keyword, because it can be used anywhere in function > (e.q. inside "if" or loop statement), however lexical variables must be the That does sound wtf-y, indeed. Is that allowed with the global keyword? Even if it is, I think it would be a sane limitation to put on lexical, that it must come at the beginning of a function body (Perhaps allowing global and static to precede it). -- troels