Re: [PHP-DEV] Re: New operator suggestion

2021-09-04 Thread David Kolář - Micropro Software
Well, yes, but not exactly. What I dislike on ?? operator is, that it supress all warnings in the expression - in my opinion it shares the same issue as @ operator and why people discourage other to use it - because it may supress far more errors than you want to supress. And this is the case

[PHP-DEV] Re: New operator suggestion

2021-09-04 Thread Ben Ramsey
David Kolář wrote on 9/4/21 17:19: > Back to the suggestion - I suggest creating a new IFNULL operator, which > will simply test if > expression is null. If not, it returns left-hand part, if yes, it > returns right-hand part. This is already what the `??` operator does. For example: