Re: null coalesce addition assignment operator ??+=

From: Date: Mon, 22 Jan 2018 22:14:12 +0000
Subject: Re: null coalesce addition assignment operator ??+=
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-101660@lists.php.net to get a copy of this message
On Fri, Jan 19, 2018 at 8:25 PM, Andreas Hennings <andreas@dqxtech.net> wrote: > I can definitely say it was not a joke. > Alrighty then... > A: Yeah seems useful, but let's wait (or work) until ??= is > implemented and released, and observe how it is being used. > Funnily enough, ??+= would be easier to implement than ??= because in the case of ??+= we always want to evaluate the RHS, while in the case of ??= the RHS's evaluation is conditional. > B: No one will ever use it, and it would hurt the language. > "hurt" is subjective here, and for every X participants to this thread you'll get X+1 answers on what that means. :p -Sara

« previous php.internals (#101660) next »