Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34117 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47896 invoked by uid 1010); 20 Dec 2007 06:57:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47879 invoked from network); 20 Dec 2007 06:57:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 06:57:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.240 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.178.240 hs-out-0708.google.com Linux 2.4/2.6 Received: from [64.233.178.240] ([64.233.178.240:20886] helo=hs-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/93-15872-7421A674 for ; Thu, 20 Dec 2007 01:57:11 -0500 Received: by hs-out-2122.google.com with SMTP id l65so3289015hsc.7 for ; Wed, 19 Dec 2007 22:57:09 -0800 (PST) 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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KDP+RoBmqfGd/L7awinKZBHzpVuqCzNxxoVkCPGPC9o=; b=BSRO9xG2zfDdyLbw/fEeC6h1rtxyq7xelF9nQTSnOeIyt6FeP+CbZe/TgIbZE/TBr+FKPhV/n6xW1AGOF3hBgkdFiu2NJY+P/iSEamok162sqP0t/XzEG2dDM4bNLxhBhPn+lBHhu/57bzu6KuTD97IR5LoY1XB0pVx3mpeRwFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GVphrkkOv0X/aKzDg03ZcL3VC3X/eOwHl73I4+qyfG1UlMeRQyh6ZZn3ROkPEttEesgM6UTOR0PmtZOncj4O/+5Lw9Sd8t4V2WrGVtz/NqevxXNcInAa211Lr2pD9u8fcgoh4id/X2PKKH58HsZLk9KYgU4fOj30vWR+By2RO08= Received: by 10.150.198.14 with SMTP id v14mr4027626ybf.134.1198133829088; Wed, 19 Dec 2007 22:57:09 -0800 (PST) Received: by 10.150.52.9 with HTTP; Wed, 19 Dec 2007 22:57:09 -0800 (PST) Message-ID: Date: Thu, 20 Dec 2007 09:57:09 +0300 To: "Stanislav Malyshev" Cc: "troels knak-nielsen" , internals@lists.php.net In-Reply-To: <4769ACF5.7000701@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: indeyets@gmail.com ("Alexey Zakhlestin") On 12/20/07, Stanislav Malyshev wrote: > > I think we need it. In the current incarnation, anonymous functions > > are so impractical to use, that it's a barrier. I think that is > > unfortunate, because it could be an interesting and useful direction > > to take for PHP. The users, who don't know what a closure is, could > > Direction like what? 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) }); -- Alexey Zakhlestin http://blog.milkfarmsoft.com/