Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84482 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18143 invoked from network); 9 Mar 2015 19:20:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2015 19:20:55 -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:3170] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/71-03288-592FDF45 for ; Mon, 09 Mar 2015 14:20:54 -0500 Message-ID: <24.71.03288.592FDF45@pb1.pair.com> To: internals@lists.php.net References: In-Reply-To: Date: Mon, 9 Mar 2015 20:20:50 +0100 Lines: 1 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Posted-By: 77.193.237.4 Subject: Re: [PHP-DEV] Request Feedback for Instance Variable Sugar RFC From: bensor987@neuf.fr ("Benoit Schildnecht") Mike Dugan just told me § and £ aren't standard symbols, and he is right, I didn't have a picture of a standard keyboard when I proposed these symbols :( I don't know what could be used instead. Certainly a combination of symbols, but I can't find one. Someone got an idea ? Regards. ""Benoit Schildknecht"" a écrit dans le message de groupe de discussion : op.xu8tk4pkhuszwh@tsukapiou... Hi, I think your idea is good. Le Mon, 09 Mar 2015 15:11:01 +0100, Shawn McCool a écrit: > 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 = $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 § or £. I don't think they are actually used, and they are quite easy to remember. Regards.