Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34231 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22800 invoked by uid 1010); 23 Dec 2007 11:16:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22785 invoked from network); 23 Dec 2007 11:16:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2007 11:16:44 -0000 Authentication-Results: pb1.pair.com header.from=chris_se@gmx.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chris_se@gmx.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.net designates 213.165.64.20 as permitted sender) X-PHP-List-Original-Sender: chris_se@gmx.net 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:34112] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/11-12793-B934E674 for ; Sun, 23 Dec 2007 06:16:44 -0500 Received: (qmail invoked by alias); 23 Dec 2007 11:16:42 -0000 Received: from p54A17F83.dip.t-dialin.net (EHLO chris-se.dyndns.org) [84.161.127.131] by mail.gmx.net (mp016) with SMTP; 23 Dec 2007 12:16:42 +0100 X-Authenticated: #186999 X-Provags-ID: V01U2FsdGVkX1/R03BawQvRIwfzfrh/1KQm1RskSC1P9jm+yphoEV MRqX5TRGk+Lctj Received: from [192.168.100.118] (unknown [192.168.100.118]) by chris-se.dyndns.org (Postfix) with ESMTP id EC4DF6881 for ; Sun, 23 Dec 2007 12:16:57 +0100 (CET) Message-ID: <476E4340.20007@gmx.net> Date: Sun, 23 Dec 2007 12:15:12 +0100 User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: internals@lists.php.net References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <476582E6.7020808@zend.com> <200712172130.08216.larry@garfieldtech.com> <4FADC266-873E-4FD2-BEC8-28EA9D833297@procata.com> <476D2854.5070803@gmx.net> <503D0384-1014-4CD1-BCAC-8F0950D5FC68@bitxtender.com> <476DB8AD.3060608@gmx.net> <98b8086f0712221824n320ce3btca61b2d3328c4477@mail.gmail.com> In-Reply-To: <98b8086f0712221824n320ce3btca61b2d3328c4477@mail.gmail.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: [PHP-DEV] PATCH: Implementing closures in PHP From: chris_se@gmx.net (Christian Seiler) Hi! > Just a minor note; The semi-colon after the closing brace, seems > superfluous. Is there any reason for it? Unfortunately, yes. The problem is that the closure must be an expression so it can a) be assigned to a variable and b) returned directly. And since the expression is only a part of a statement, I can take no influence at that point in the grammar as to whether a semicolon should follow or not. I don't see any way of removing the semicolon without a) either making the language inconsistent and/or b) adding a lot of bloat to the grammar. Regards, Christian