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 <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