Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21031 invoked by uid 1010); 20 Dec 2007 20:03:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21015 invoked from network); 20 Dec 2007 20:03:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 20:03:36 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:51286] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/A6-18668-D8ACA674 for ; Thu, 20 Dec 2007 15:03:34 -0500 Received: from Macintosh-3.local (206-15-64-202.static.twtelecom.net [206.15.64.202]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-2) with ESMTP id lBKK2Bpm031276; Thu, 20 Dec 2007 12:02:11 -0800 Message-ID: <476ACA43.8020007@gravitonic.com> Date: Thu, 20 Dec 2007 12:02:11 -0800 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Antony Dovgal CC: Alexey Zakhlestin , internals@lists.php.net References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <200712172130.08216.larry@garfieldtech.com> <4FADC266-873E-4FD2-BEC8-28EA9D833297@procata.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> In-Reply-To: <476A208D.9020201@daylessday.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5194/Thu Dec 20 10:31:08 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: andrei@gravitonic.com (Andrei Zmievski) Anthony, It may be disagreeable from your perspective, but I (and many others) find this to be a very useful construct. And I hate to invoke "other languages" argument, but there is a reason that something like this is available in many modern languages - it is useful. -Andrei Antony Dovgal wrote: > On 20.12.2007 09:57, Alexey Zakhlestin wrote: >> being able to do the following (and not to worry about runtime >> compilation) is a good reason on it's own: >> >> array_filter($my_data, function($test){ return 3 === ($test % 4) }); > > Oh, my.. > This code clearly demonstrates why a syntax like this should not be allowed. Ever. >