Re: [RFC Proposal] Null Coalesce Equal Operator

From: Date: Wed, 09 Mar 2016 18:38:43 +0000
Subject: Re: [RFC Proposal] Null Coalesce Equal Operator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-91594@lists.php.net to get a copy of this message
On Wed, Mar 9, 2016 at 10:14 AM, Midori Kocak <mtkocak@gmail.com> wrote: > Remember my question about ??= operator? > https://wiki.php.net/rfc/null_coalesce_equal_operator > As I said before, I support this. The whole thing feels like a no-brainer in terms of implementing it. Davey mentioned on twitter[1] the idea of shortening it to X ?= Y, but I think that would be inconsistent with other operators (e.g. *= versus **=) and would complicate further evolutions of syntax such as adding the X ?:= Y assignment operator (as shorthand for `X = X ?: Y`). -Sara 1 - https://twitter.com/dshafik/status/707504022224154626

« previous php.internals (#91594) next »