Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17415 invoked from network); 1 Feb 2015 01:27:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2015 01:27:52 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:52499] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/6A-01632-7118DC45 for ; Sat, 31 Jan 2015 20:27:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 775EE8800DB; Sat, 31 Jan 2015 20:27:48 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EJtz9KRZRre3; Sat, 31 Jan 2015 20:27:48 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id B5A068800D5; Sat, 31 Jan 2015 20:27:47 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Sun, 1 Feb 2015 01:27:45 +0000 Cc: Philip Sturgeon , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <746466D2-F3DB-4561-8C78-8685CC8F7EE7@ajf.me> References: <54CC8E81.3020104@beccati.com> To: Dan Ackroyd X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName() From: ajf@ajf.me (Andrea Faulds) > On 1 Feb 2015, at 01:23, Dan Ackroyd wrote: >=20 > On 31 January 2015 at 17:31, Philip Sturgeon = wrote: >> On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati = wrote: >>>=20 >>> 2) There's a tiny bit of overlap with "scalar type hints", >>=20 >> 2) There might be some overlap in the scalar type hint stuff kinda, >> but I'd like to think there isn't. getClassName() is just >> getClass()->name >=20 >=20 > I think Matteo's point is that if any scalar type RFC passes, a > type-hint for a parameter would not always be the name of a class, so > the method name 'getClassName()' would be misleading. >=20 > It would be good to choose a better name to avoid that problem. We already have that problem (array, callable). I think the more important issue is the conflict with the = ReflectionTypeAnnotation RFC, which proposes something similar to what = was originally part of the Return Types RFC: https://wiki.php.net/rfc/reflectionparameter.typehint Thanks. -- Andrea Faulds http://ajf.me/