On Tue, 9 Apr 2019 at 11:19, Bishop Bettini <bis...@php.net> wrote:

> See also Bug 61915[1], which suggests leaving ? left and introducing ?? for
> right. Personally I don't see any benefit to keeping a ternary with left
> associativity.
>


?? wouldn't work, because that's now the null-coalescing operator. (I've no
idea if it would be ambiguous to the parser to have it mean both, but it
would be horrible for humans to read!)

Obviously, that doesn't rule out having a new syntax of some sort, but it
highlights the usual problem with suggesting new operators: we're running
out of punctuation!

Regards,
-- 
Rowan Collins
[IMSoP]

Reply via email to