GNOME Bugzilla – Bug 608904
Coalescing assignment (??=)
Last modified: 2010-08-01 20:29:48 UTC
Since coalescing operator has been implemented, it would be nice (and logical) to also have a matching assignment operator.
I don't think it's a good idea to add conditional assignment operators. If I see an assignment, I expect the right hand side to always be evaluated. This would not be the case with ??=. The other binary conditional operators (&& and ||) don't have a matching assignment operator, either. I also don't think that self-assignment with the coalescing operator is really that common. The left hand side of ?? is always nullable while the right hand side is often non-null. Assigning to a nullable variable would often not be the best choice, in my opinion.
*** Bug 625777 has been marked as a duplicate of this bug. ***