Re: [RFC] Deprecate left-associative ternary operator

From: Date: Tue, 09 Apr 2019 13:54:49 +0000
Subject: Re: [RFC] Deprecate left-associative ternary operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-105175@lists.php.net to get a copy of this message
On Tue, 9 Apr 2019 at 11:19, Bishop Bettini <bishop@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]

« previous php.internals (#105175) next »