Closed bchociej closed 4 years ago
See #3.
In particular, this desguaring is over-simplified. (And it whether we run a ?? (a = b)
or a = a ?? b
is unobservable anyway!) But when it's more complicated, it becomes obvious that +=
isn't just "copy the left side to the right side". The internal semantics of the operator are different.
Because the existing assignment operators behave like so:
I would expect the proposed operators to behave in a similar way:
I am making no comment on the usefulness of either approach, just that I find the meaning of the operators as proposed to be confusing in light of the behavior of the existing assignment operators.