Re: Request Feedback for Instance Variable Sugar RFC

From: Date: Mon, 09 Mar 2015 19:20:50 +0000
Subject: Re: Request Feedback for Instance Variable Sugar RFC
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-84482@lists.php.net to get a copy of this message
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 <shawn@heybigname.com> 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.

« previous php.internals (#84482) next »