Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76327 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4809 invoked from network); 4 Aug 2014 00:52:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2014 00:52:47 -0000 Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Linux 2.6 Received: from [85.13.137.24] ([85.13.137.24:46339] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/39-25844-C59DED35 for ; Sun, 03 Aug 2014 20:52:45 -0400 Received: from dd15934.kasserver.com (dd0802.kasserver.com [85.13.143.1]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 0B5CC261BFB; Mon, 4 Aug 2014 02:53:07 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SenderIP: 95.91.210.241 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: References: To: internals@lists.php.net Cc: ajf@ajf.me Message-ID: <20140804005307.0B5CC261BFB@dd15934.kasserver.com> Date: Mon, 4 Aug 2014 02:53:07 +0200 (CEST) Subject: Re: [PHP-DEV] [RFC] Closure::call and Function Referencing as Closures From: mails@thomasbley.de ("Thomas Bley") Hello Andrea, from userland perspective, I would prefer to open the Closure constructor instead of adding new syntax: $qux = new FooBar(3); // $func = &FooBar::getStatic; $func = new Closure(array('FooBar', 'getStatic')); $func($qux); // 3 Regards Thomas Andrea Faulds wrote on 03.08.2014 23:50: > Good evening, > > I am proposing two new RFCs. As they are both inter-related and complementary, > with the second having the first as a prerequisite, I’m making just a single > email to cover both: > > https://wiki.php.net/rfc/closure_apply > https://wiki.php.net/rfc/function_referencing > > Both have written, tested and working patches aimed for master. > > Thoughts appreciated, thanks. > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >