Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16933 invoked from network); 24 Apr 2014 15:59:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 15:59:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:61671] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/60-11915-AD439535 for ; Thu, 24 Apr 2014 11:59:22 -0400 Received: by mail-oa0-f42.google.com with SMTP id i4so2876619oah.29 for ; Thu, 24 Apr 2014 08:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=51M7a3nGjLBwDnqcJuHAW7+/KVsc15Gqgq6iQU8bfL8=; b=znBd5JN/MH6sfOgsOh1v0EOchQpKAoIKX0DBt2rpaRhDezQuNbqUPGBg/hN0lckAly rjkWKP40s0Z3+JsfvOG0BekobHzDX+z5xq4dVNDPaMEAvrI75WqMtARXaJAYlB7FmpDQ WGM16SfvTtFSAzpVy198f9e5vpcZOudKyXib879cgbm/HfSss95QKNdKFvz2ch0MtOkX tYvwxWR4XB3N1criJew1Z8mBPm0ECzk1Jp8DCgxWkA99G0FfHWzGOuAzwCjKlBJxN7Tz d33sGU6vbf/n6OOiTtSwbFp4irmqpMRxd7fuUDzOfcUVNDZVPE3GeUMD+DCZJ5u3m2US sjkA== MIME-Version: 1.0 X-Received: by 10.182.66.202 with SMTP id h10mr2226852obt.38.1398355159815; Thu, 24 Apr 2014 08:59:19 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.77.100 with HTTP; Thu, 24 Apr 2014 08:59:19 -0700 (PDT) Date: Thu, 24 Apr 2014 09:59:19 -0600 X-Google-Sender-Auth: BGsumWc0Cxd93l_oZ25tBkbDWgI Message-ID: To: internals Content-Type: multipart/alternative; boundary=089e0160c34e921b4404f7cbee34 Subject: [RFC] Return Type Declarations From: levim@php.net (Levi Morrison) --089e0160c34e921b4404f7cbee34 Content-Type: text/plain; charset=UTF-8 My dear Internals friends, I have spent the last month drafting an RFC that allows return types: https://wiki.php.net/rfc/returntypehinting Notable items: - Differences from past RFCs are summarized in the RFC: https://wiki.php.net/rfc/returntypehinting#differences_from_past_rfcs - The patch includes basic opcache and reflection support. It also has phpt tests. - Informal performance tests indicate that the patch did not fubar performance; if desired a more detailed test can be conducted before voting. - This RFC does not add, modify, or remove keywords at all; this notably excludes type-hints for scalars. Supporting scalar type declarations is outside the scope of this RFC; if you are interested in supporting scalar type declarations please discuss it elsewhere. As a friendly reminder, everyone on this list is interested in developing a better PHP and the definitions of 'better' vary from person to person. Please be civil and constructive while discussing this RFC. Thank you! Some thanks, regardless if the RFC is accepted: - For providing a patch: Joe Watkins. - For helping me iterate on RFC drafts: Bob Wienand, Nikita Popov and Anthony Ferrara - For previous RFCs on this topic: Felipe Pena and Will Fitch. I gleaned valuable knowledge from your proposals and the discussion around them. --089e0160c34e921b4404f7cbee34--