Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13302 invoked by uid 1010); 20 Dec 2007 10:27:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13263 invoked from network); 20 Dec 2007 10:27:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 10:27:22 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:59131] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/DB-15872-A7C3A674 for ; Thu, 20 Dec 2007 04:57:15 -0500 Received: from [192.168.3.87] (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTP id AA686640113; Thu, 20 Dec 2007 12:57:11 +0300 (MSK) Message-ID: <476A3C72.6030908@daylessday.org> Date: Thu, 20 Dec 2007 12:57:06 +0300 User-Agent: Thunderbird 2.0.0.9 (X11/20071114) MIME-Version: 1.0 To: Alexey Zakhlestin CC: internals@lists.php.net References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <200712172341.54372.larry@garfieldtech.com> <98b8086f0712191345h7fe11a7kc5d34b0369754c8f@mail.gmail.com> <47699960.1090101@zend.com> <98b8086f0712191528n2fd348d0oe3da9eed20d87194@mail.gmail.com> <4769ACF5.7000701@zend.com> <476A208D.9020201@daylessday.org> <476A33BD.1050508@daylessday.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: tony@daylessday.org (Antony Dovgal) On 20.12.2007 12:41, Alexey Zakhlestin wrote: > it doesn't make sense to put some of these functions in libraries, > because they are really once-used. It makes perfect sense to keep all your functions in one place instead of spreading them all over the code. And no, this kind of "optimization" doesn't make your code run any faster. >> So here is what we _actually_ get with this anonymous function syntax: >> 1) Yet another way to make the code unreadable and overcomplicated. > it is not unreadable. it is perfectly readable for people with > modern-languages background (and I don't mean 1 or 2 languages, I mean > majority) A new syntax that conflicts with currently existing one (or looks very similar to) doesn't make code more readable, it adds more confusion instead. >> 3) 10 people happy because they got a new toy. > "thousands" is a closer number Does this mean you do admit that this is just a new toy? (pretty useless, but funny) =) -- Wbr, Antony Dovgal