Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75168 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74007 invoked from network); 2 Jul 2014 16:09:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2014 16:09:57 -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.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:49082] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/C5-47713-4DE24B35 for ; Wed, 02 Jul 2014 12:09:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 44B5A2400C2; Wed, 2 Jul 2014 12:09:54 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EM43elK3s_Gx; Wed, 2 Jul 2014 12:09:54 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 9AF452400E5; Wed, 2 Jul 2014 12:09:52 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) In-Reply-To: Date: Wed, 2 Jul 2014 17:09:49 +0100 Cc: Nikita Popov , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Lazare Inepologlou X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] Re: [RFC] [PHP 6] Uniform Variable Syntax From: ajf@ajf.me (Andrea Faulds) On 2 Jul 2014, at 17:04, Lazare Inepologlou wrote: > Yes, in the RFC, you mention that this will be possible: >=20 > ($obj->closure)() >=20 > While this is very welcome, I was wandering if we could skip the extra > parenthesis, like this: >=20 > $obj->closure() Sadly, it wouldn=92t be possible as the two are very different. = Properties and methods occupy completely different namespaces, and while = methods are case-insentivie, properties are case-sensitive! = ($obj->closure)() gets a property then calls it, while $obj->closure() = calls a method. Perhaps this might change in future, but the RFC doesn=92t propose that. -- Andrea Faulds http://ajf.me/