[VOTE] Unary null coalescing operator

php.internals

Andrew Faulds

9 years ago
Hi everyone, There seems no reason not to put this to a vote, so I have: https://wiki.php.net/rfc/unary_null_coalescing_operator Voting starts immediately and ends in 7 days' time, so 2017-07-18. Thanks!
-- Andrea Faulds https://ajf.me/

Nikita Popov

9 years ago
On Tue, Jul 11, 2017 at 11:53 PM, Andrea Faulds <ajf@ajf.me> wrote:
> Hi everyone, > > There seems no reason not to put this to a vote, so I have: > > https://wiki.php.net/rfc/unary_null_coalescing_operator > > Voting starts immediately and ends in 7 days' time, so 2017-07-18. > > Thanks! >
Voting no on this one -- I don't see a lot of value proposition here, but introducing this now will negatively interact with some (imho more interesting) future language extensions, such as null-safe object operations. Having both $obj?->foo() and $obj??->foo() with very different semantics seems undesirable to me. Nikita

Andrew Faulds

9 years ago
Andrea Faulds wrote:
> Hi everyone, > > There seems no reason not to put this to a vote, so I have: > > https://wiki.php.net/rfc/unary_null_coalescing_operator > > Voting starts immediately and ends in 7 days' time, so 2017-07-18. > > Thanks!
The RFC was declined, 12 to 4. Thanks for voting.
-- Andrea Faulds https://ajf.me/