Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29649 invoked from network); 4 Aug 2014 06:44:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2014 06:44:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.115 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.115 smtp115.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.115] ([108.166.43.115:46336] helo=smtp115.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/AC-25844-7DB2FD35 for ; Mon, 04 Aug 2014 02:44:40 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp15.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id B0126380598; Mon, 4 Aug 2014 02:45:02 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp15.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5E7C8380722; Mon, 4 Aug 2014 02:45:02 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Mon, 04 Aug 2014 06:45:02 GMT Message-ID: <53DF2BED.10103@sugarcrm.com> Date: Sun, 03 Aug 2014 23:45:01 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Andrea Faulds , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Closure::call and Function Referencing as Closures From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > https://wiki.php.net/rfc/function_referencing This syntax collides with by-ref assignment and by-ref arrays, which is not good. Different things should not look the same. I'm not sure also how exactly non-closures can function as closures - if you take SplFixedArray::getSize and rebind it to SplFileObject, what is supposed to happen? I also do not understand why one needs &strlen if "strlen" works just fine. Only to declare "PHP now has first-class functions"? You can declare it right now. No need to change the syntax for that, since the engine does exactly the same and no additional capabilities appear (though additional problems - e.g. rebinding non-closures - do). -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/