On Mon, Jan 19, 2015 at 12:30:14PM +0000, Andrea Faulds wrote: > Hi Alain, > > > On 19 Jan 2015, at 11:06, Alain Williams <a...@phcomp.co.uk> wrote: > > > > On Mon, Jan 19, 2015 at 08:28:17AM +0000, Andrea Faulds wrote: > > > >> The RFC is here: https://wiki.php.net/rfc/combined-comparison-operator > > > > I like it. > > > > The RFC does not say what the precedence is to be. Could I suggest that it > > be > > the same as ''== != === !== <>'' - which keeps it consistent with Perl. > > It has the same precedence as the other comparison operators, it’s > non-associative.
Sorry to be a persistent pain, but PHP has 2 sets of comparison operators with different precedence: ''< <= > >='' ''== != === !== <>'' I think that the RFC should clearly state that spaceship joins the 2nd set of operators in the precedence table. The introduction kind of hints that it would join the first lot -- but that would be inconsistent with Perl. http://uk1.php.net/manual/en/language.operators.precedence.php -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php