Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76713 invoked from network); 11 Jul 2016 16:30:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2016 16:30:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=aaron@trowski.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=aaron@trowski.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain trowski.com designates 199.38.81.6 as permitted sender) X-PHP-List-Original-Sender: aaron@trowski.com X-Host-Fingerprint: 199.38.81.6 mercury.negativeion.net Received: from [199.38.81.6] ([199.38.81.6:56425] helo=mercury.negativeion.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/2A-22463-8A9C3875 for ; Mon, 11 Jul 2016 12:30:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id F24CE3C53D29; Mon, 11 Jul 2016 12:30:27 -0400 (EDT) X-Virus-Scanned: amavisd-new at negativeion.net Received: from mercury.negativeion.net ([127.0.0.1]) by localhost (mercury.negativeion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ozAIesKWBVdp; Mon, 11 Jul 2016 12:30:27 -0400 (EDT) Received: from [10.0.1.3] (unknown [192.119.134.23]) by mercury.negativeion.net (Postfix) with ESMTPSA id 184663C53D0F; Mon, 11 Jul 2016 12:30:27 -0400 (EDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_316F26DD-3F47-4B87-8FBD-D7CCC6CC1121" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: Date: Mon, 11 Jul 2016 11:30:27 -0500 Cc: internals , Joe Watkins , Davey Shafik Message-ID: References: <60AC7828-990B-4B6D-A122-AB9C15C6DEAE@trowski.com> To: Levi Morrison X-Mailer: Apple Mail (2.3124) Subject: Re: [PHP-DEV] [RFC][Vote] ReflectionType Improvements From: aaron@trowski.com (Aaron Piotrowski) --Apple-Mail=_316F26DD-3F47-4B87-8FBD-D7CCC6CC1121 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Levi, > On Jul 9, 2016, at 10:12 AM, Levi Morrison wrote: >=20 > On Sat, Jul 9, 2016 at 8:16 AM, Aaron Piotrowski > wrote: >>=20 >>=20 >> 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. >=20 > 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. >=20 > 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= --Apple-Mail=_316F26DD-3F47-4B87-8FBD-D7CCC6CC1121--