Hi,

I think your idea is good.

Le Mon, 09 Mar 2015 15:11:01 +0100, Shawn McCool <sh...@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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to