On Wed, Jul 11, 2018 at 5:20 AM, Ryan <iggyv...@gmail.com> wrote:
> On Tue, Jul 10, 2018 at 2:58 PM, Andrey Andreev <n...@devilix.net> wrote:
>> isset($foo) OR $foo = 'bar'; (and similar variations using empty()
>> and/or &&) is another pattern I use often to set fallback values for
>> empty or missing inputs.
>> An eventual deprecation would make literally all of my code output
>> entire screens of warnings.
> $foo=$foo??"bar"; would work there.  I could definitely see this being an
> issue if you weren't using isset (although a concrete example of that
> doesn't come to mind right away).

I'm very well aware of the alternatives, that's not the point. I and
although not a majority, many others too would have to go and replace
countless instances of OR usage, for no reason other than "it can be
done another way".

Aside from a few people asking what the difference is, in more than a
decade with PHP, I've never seen a single person who's had a problem
with the operators you want to deprecate. They're not a common cause
for bugs even by a long shot, nor a common annoyance, so I fail to see
the benefits of your proposal.


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

Reply via email to