Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19735 invoked from network); 17 Jul 2016 23:31:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2016 23:31:45 -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.192.170 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.170 mail-pf0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:36667] helo=mail-pf0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/FB-31884-1651C875 for ; Sun, 17 Jul 2016 19:31:45 -0400 Received: by mail-pf0-f170.google.com with SMTP id h186so6231945pfg.3 for ; Sun, 17 Jul 2016 16:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=8FFUdxLS5AgvSLK6SrRohO6HccA36+wMyiIDV7JMvPM=; b=TNxDAHB//8+QhXP9lnzdihWixOnstfO2eyYz7jJSS6ACFi21nmtyN4bdX4N11bpdV2 k/ROKn4Odn1H3Ye4VBzgYLIlWlqFmIivffVGq1EwCdXZiYKhOOaeUVNNDMzT+IWAJ6WV QwIjp4MkGlRS2PMxc6TubJ9BrKpI46rNPruB9PtmMSY9MCsnD/ocXX25ZhiaN5mNBAKm VsUKtSbSxeHR9N5kV2kajE33mLtmT4t34eawSyjjQzFfBuv26lE8hshALUtFO8JtBAR+ 38F2L+rtCBa0HQp5C/AWA4uCcmt3kNjoYOKB5c8vCsAr+rHAALopNzjIi2+5pPB+S63X 2Q2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=8FFUdxLS5AgvSLK6SrRohO6HccA36+wMyiIDV7JMvPM=; b=gESO/YEzyDuaGUgKjCOCObSSP/U4v9Ok+KFyH3aywVJXkXDqFt/wgUqaDAP853LNXo HnI6p6aBdhqS6VRspHc2G54kwdytzOpHySI+DB2t+8+9zddsDhVMSvISo+NvTJ9VmuFD j0b0vffUm2ODnQ/DNcCi3S/IQSFxiqxLCxbNl8EtP8CXo2cPYYSaU+mKPpuLL0KUzH+e nbR9hjJ87JuiQYi2MOvXXoltzuWJOESCrX1Hzj6AfrahDPP/ib7IZZfuJZkcU+lW+2Hi b6sSlVSQVYOGIrbDwSMRyEo3GiF5/0RM1Jkq6QQkBAOKV3FTNyRrGMXMruXVTF/bI7Tp QNzQ== X-Gm-Message-State: ALyK8tJXuksgwLW6b6nwNOwgyIIpU2jlYorQnSENfRaKmHyUMer8KEJhaR+pwUrcqwp2ZIrZ2AoAZ+WsRMfXcg== X-Received: by 10.98.29.201 with SMTP id d192mr35505454pfd.142.1468798302662; Sun, 17 Jul 2016 16:31:42 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.66.24.42 with HTTP; Sun, 17 Jul 2016 16:31:41 -0700 (PDT) In-Reply-To: References: <60AC7828-990B-4B6D-A122-AB9C15C6DEAE@trowski.com> Date: Sun, 17 Jul 2016 17:31:41 -0600 X-Google-Sender-Auth: Jd2a1_YGD0erSF7fqJfaXUfL9So Message-ID: To: Aaron Piotrowski Cc: internals , Joe Watkins , Davey Shafik Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Vote] ReflectionType Improvements From: levim@php.net (Levi Morrison) On Mon, Jul 11, 2016 at 10:30 AM, Aaron Piotrowski wrote: > Hi Levi, > > On Jul 9, 2016, at 10:12 AM, Levi Morrison wrote: > > On Sat, Jul 9, 2016 at 8:16 AM, Aaron Piotrowski wrote: > > > Additionally, I propose adding a getName() method to ReflectionType that > returns only the name of the type, regardless of nullability. Casting should > not be required to get information from an object, but currently this is the > only way to get the type name from ReflectionType. Most other reflection > classes include a getName() method, this seems to have been an oversight. > > > This wasn't an oversight. If we add union or intersection types then > not all types are named (for instance `ArrayAccess & Countable & > Traversable` is not a named type). This is why it doesn't exist on the > base ReflectionType. > > > Good point, then I agree getName() should be in an extending class as in the > RFC. > > > I have surveyed some of the people who have voted no. Their reasons > vary but based on these conversations it seems to me that by dropping > ReflectionClassType and the associated autoloading mechanism that > overall we'd be happier. I do agree with Aaron that at least *some* > changes really need to go into 7.1. How do people feel about my > proposal to just drop autoloading and `ReflectionClassType`? > > > This sounds reasonable to me. > > Aaron Piotrowski This has been quiet for a few days. I am assuming this means there are no objections. I will work on updating the RFC and revisit this as soon as I can.