Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76419 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97773 invoked from network); 11 Aug 2014 07:36:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2014 07:36:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.171 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:57576] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/20-30974-A6278E35 for ; Mon, 11 Aug 2014 03:36:10 -0400 Received: by mail-vc0-f171.google.com with SMTP id hq11so11067691vcb.2 for ; Mon, 11 Aug 2014 00:36:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=GtKc9esjnXZctOj+HuWxGDB61YNToWkdmvKZRra+62o=; b=P01dvnMCMi/KdUaLg4fLsW5DmYAmgIWno6HFG8JD8PKNmnPu9tSmpq6RcuDGkpd9rh Em6t8j5ScKnCQUR9/j+YfSo7RV3crLoi3aMBi0bfPTyx/hGtdre3hNAFuLUmhPyIKPX5 VPvDNL+XwC5aWlLCZVLVQnwpoigfi4cVuMbNocyVj0dv+i6LvlEWZjK9qzrNBlPTPEkr nn4QqZAqK0oQnRyuUtD+yLHVrI8hDqvuS5PZTCyd0+uVO8MF8VBvH+sLOXDUMLhjN0m7 6ndXIahAjrIMgDVLbnFZQ98vltKlSdgTFIcREj15KVtYorMHbu1J/ykT2qmhZGjJZQ30 K0bw== X-Gm-Message-State: ALoCoQkezHihcqC2wJviN1s1DLLpQDFU1to+bp+mMANcHTRRMJwc4/8KLBEl9EHfu+Qy7qQNPVJQ0djWLQ9DTDVRwpDrQ+VuXGhCRbxe5pR2hUfEmoYuXNuR79TcpQvg+mXVsjGZrLIb MIME-Version: 1.0 X-Received: by 10.52.61.99 with SMTP id o3mr177478vdr.46.1407742608009; Mon, 11 Aug 2014 00:36:48 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Mon, 11 Aug 2014 00:36:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Aug 2014 11:36:47 +0400 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=001a113403d01606250500559efe Subject: Re: [PHP-DEV] [RFC] Closure::call and Function Referencing as Closures From: dmitry@zend.com (Dmitry Stogov) --001a113403d01606250500559efe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andrea, Could you measure the performance impact of function referencing. vs I don't like the "&" syntax a lot, but I understand that it's a compromise between readability and implementation complication. The patch probably misses support for "&self::foo", "&parent::foo", "&static::foo". It also may be improved using run_time cache (this is not important now). Thanks. Dmitry. On Mon, Aug 4, 2014 at 1:50 AM, Andrea Faulds wrote: > 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=E2= =80=99m > 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 > > --001a113403d01606250500559efe--