>
> There’s no existing unary form of  * and ^, though, so I think they’d both
> be available in this context (^ is my preference).


I think that is also my preference too.

On 20 March 2015 at 20:17, John Bafford <jbaff...@zort.net> wrote:

>
> On Mar 20, 2015, at 16:10, Sean Coates <s...@seancoates.com> wrote:
>
> >> I posted four suggestions earlier,
> >>
> >> They were:
> >>
> >> @
> >> &
> >> *
> >> ^
> >>
> >> My favourites are the asterisk or caret.
> >
> > That’s no different than `@` being invalid because it’s already in use.
> >
> > $ php -a
> > Interactive shell
> >
> > php > define('a', 1);
> > php > define('b', 2);
> > php > echo @a . "\n";
> > 1
> > php > echo (a&b) . "\n";
> > 0
> > php > echo (a*b) . "\n";
> > 2
> > php > echo (a^b) . "\n";
> > 3
> > php >
> >
> > However: `☃` has a long history of being available to PHP.
> >
> > S
> >
>
> There’s no existing unary form of  * and ^, though, so I think they’d both
> be available in this context (^ is my preference).
>
> Overloading unary & would probably also work in this context, but
> personally, I think that & is too overused.
>
> -John

Reply via email to