Re: [RFC] Fix the Tenary Operator -- Please!? Please?

From: Date: Thu, 26 Mar 2015 22:40:56 +0000
Subject: Re: [RFC] Fix the Tenary Operator -- Please!? Please?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-85487@lists.php.net to get a copy of this message
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>

« previous php.internals (#85487) next »