Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39186 invoked from network); 19 Apr 2016 12:01:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2016 12:01:38 -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 157.56.111.117 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 157.56.111.117 mail-bn1bon0117.outbound.protection.outlook.com Received: from [157.56.111.117] ([157.56.111.117:39145] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/D0-33122-02E16175 for ; Tue, 19 Apr 2016 08:01:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=seQfJ6TRsW0IujzJRQBhikLb8A8H5a5jc016g0Xdkqs=; b=Bgj/vJEGLMFMLQPG/NYUik46TZocL7wc/4WzeufGXyXsy4qiKGxRD2fc7y0TlPlHSM8FSZETn0QjLQ6hGxwzYCS5orPeSSVruYTggoy5ZH8KPlR7RGqcuxp1v4pVRF7COr3dDmU44aMQj0NFvy0EN1CakaIX9gWF41NbvhY32GA= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) with Microsoft SMTP Server (TLS) id 15.1.466.19; Tue, 19 Apr 2016 12:01:33 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0466.022; Tue, 19 Apr 2016 12:01:33 +0000 To: Joe Watkins , PHP internals Thread-Topic: [PHP-DEV] RFC: Functional Interfaces Thread-Index: AQHRmVxd1+JMXBOEmEuWnBcWdY+Mo5+RLkH6 Date: Tue, 19 Apr 2016 12:01:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pthreads.org; dkim=none (message not signed) header.d=none;pthreads.org; dmarc=none action=none header.from=zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: 848bdea1-b692-492d-d531-08d3684a59d6 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1784;5:tUPPYIfVtjON4KCp6D/I0CAYKGWmZRBC9zxijKN5jXGW3vuStzl3V0JLvnsr4+tlAJsii5zeq2t8qigIV/jWU4BJSKZSLsUjvKrcBZesyGEm0ezL5wjxLVxGMPzVOA9vFpaqwQKyPATzLTwCv/mwaWGtnqvDFMwadjO7krcjpiU=;24:zmrcX5knSMFQyNzEY3WvZxrvs597HOcB4C7HFVb69dDF99eSU8Ddlsr1+0qOH/wlmW9C/yUPOiZAoE5vhRkESxiL9ujFpoK0lu45OZyDyzE=;7:CjzXR4sUGGnoWGH7UyTqxsq9FQoGBufRsbjJW03A2qTiDPt+RouIBWwQA/HkeenQKNkCALWpjAbr31eYKic86qdIh6S8yu0p6X7gamksSHmtHNq6REyV/DzJhZoU4uUBkCynKErootQZq+eRFxwfJpsmLJp1D0cc+o8QSa7Z6quIete/IfVz5GRUgiYHJvX0guSB4LlHrHlUOJs+Rlo/Oa+3cJ0MXsNHvRcAdlPaebg= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BY2PR0201MB1784;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-forefront-prvs: 0917DFAC67 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(11100500001)(1220700001)(92566002)(5003600100002)(77096005)(1096002)(5004730100002)(3846002)(6116002)(10400500002)(586003)(189998001)(5001770100001)(19580405001)(102836003)(9686002)(50986999)(54356999)(2906002)(107886002)(87936001)(3280700002)(106116001)(81166005)(74316001)(86362001)(33656002)(99286002)(3660700001)(19580395003)(76176999)(2950100001)(2900100001)(15975445007)(122556002)(76576001)(5008740100001)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1784;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2016 12:01:33.1460 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1784 Subject: Re: [PHP-DEV] RFC: Functional Interfaces From: dmitry@zend.com (Dmitry Stogov) Are $cb1 and $cb2 going to be the same (do the same)? Is this just a new syntax sugar, or a really new feature? According to implementation, I think, you shouldn't extend "zend_closure" w= ith "interface". If this is a sugar, lets implement it as a sugar (without VM changes). But may be I didn't understand the idea at all :) Thanks. Dmitry. ________________________________________ From: Joe Watkins Sent: Monday, April 18, 2016 13:22 To: PHP internals Subject: [PHP-DEV] RFC: Functional Interfaces Morning Internals, Please review the following RFC: https://wiki.php.net/rfc/functional-interfaces An implementation is provided, and is testable on 3v4l. Review of the implementation from those of you that do that would be good :) Cheers Joe