Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11994 invoked from network); 9 Mar 2015 18:28:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2015 18:28:17 -0000 X-Host-Fingerprint: 77.193.237.4 4.237.193.77.rev.sfr.net Received: from [77.193.237.4] ([77.193.237.4:19173] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/01-03288-936EDF45 for ; Mon, 09 Mar 2015 13:28:14 -0500 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: Date: Mon, 09 Mar 2015 19:28:06 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Posted-By: 77.193.237.4 Subject: Re: [PHP-DEV] Request Feedback for Instance Variable Sugar RFC From: bensor987@neuf.fr ("Benoit Schildknecht") Hi, I think your idea is good. Le Mon, 09 Mar 2015 15:11:01 +0100, Shawn McCool = a = =C3=A9crit: > There's a cultural disposition against re-purposing a symbol from one = = > major > version to the next. Let's consider that as fact and move on. > > If I wanted to provide syntactic sugar to replace a symbol with $this-= > = > so > that our code can become more expressive if we choose to use it, how = > would > you recommend implementing that? > > @ is not going to be a _real_ option. But what about.. > > :number =3D $number; > > :add(:number, $number); > > or some other character? : is already used for ternary expression, it will confuse people as well= = as softwares and parsing scripts. The RFC would certainly be rejected in= = the voting phase. I would recommend using =C2=A7 or =C2=A3. I don't think they are actuall= y used, and = they are quite easy to remember. Regards.