On Thu, Mar 26, 2015 at 10:31:00PM +0000, Rowan Collins wrote: > What I've always been annoyed by is the *precedence* of the operator - having > to add brackets to mix it with string concatenation, etc - which it turns out > to is the same in all sorts of languages.
It is the ''all sorts of languages'' that is key here. The point is that PHP associativity for ?: is different from other languages and it is that that confuses and leads to bugs. What is right/wrong is not as important as all others doing it the other way. -- 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