On 02.02.15 14:49, Nikita Popov wrote:
> I've voted -1 because I think this should be a function and not an
> operator. compare($a, $b) is more obvious than $a <=> $b and it's not like
> writing comparison functions is such a super common use case that it needs
> the extra brevity of an operator. A function can furthermore be used as a
> callback, while an operator requires a wrapping closure.

I support what Nikita said, but it doesn't influence my vote; I see them
separate.

Btw, I would be hesitant to introduce such a common name 'compare'.

thanks,
- Markus

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

Reply via email to