On 26 March 2015 at 22:40, Michael Morris <tendo...@gmail.com> wrote:

> It's not a feature though - it's a bug.  It's just one of those bugs that
> the fixing of which may break something.
>
>
TL;DR -1 for 7, and -1 in general.

It's not really a bug, it works according to the defined behaviour, the
issue is that some (I think most) people disagree with the correctness of
the defined behaviour.

The rules are quite clear that this cannot go into 7 at this point, and no
exceptions can be made to this rule otherwise there may as well not be a
rule at all.

On the more personal level of my own opinion, I don't believe there is
enough benefit in fixing this to do it at all. It will likely break a lot
of codebases and slow down the adoption of whichever version introduces the
"fix", and all it does is give people the ability to do something which
some (and again I think most) people would agree is a horrible thing to do
from a readability and maintainability perspective.

It also suffers from a similar issue to the "API cleanup" idea that come up
again and again - yes, some arguably poor decisions were made a long time
ago which have left us with inconsistencies and that favourite phrase of
proponents of these ideas, "cognitive overhead". Fixing the inconsistencies
only serves to *add* cognitive overhead. People may not like how it works,
but at least they know how it works - and anyone writing "run anywhere"
code would still do what they do now, which in my experience is generally
write the ternary chain with brackets to disambiguate it, then realise it
looks horrible and change it to an elseif tree.

On Thu, Mar 26, 2015 at 6:31 PM, Rowan Collins <rowan.coll...@gmail.com>
> wrote:
>
> > On 26 March 2015 20:54:12 GMT, Michael Morris <tendo...@gmail.com>
> wrote:
> > >Per PHPsadness...
> > >
> > >http://phpsadness.com/sad/30
> > >
> > >Since 7 is allowed to have BC breaks this would be the time to fix
> > >this.
> > >
> > >I'll let someone with more seniority actually write this up - but
> > >please,
> > >please fix this - it's a very long standing annoyance.
> >
> > I used to think this was a major nuisance, but recently thought about it
> > and decided I've never once wanted to do this - the result is really ugly
> > code whatever the associativity.
> >
> > 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.
> >
> > Regards,
> > --
> > Rowan Collins
> > [IMSoP]
> >
> >
> >
> > --
> > PHP Internals - PHP Runtime Development Mailing List
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>

Reply via email to