Closed Xstoudi closed 4 years ago
See https://github.com/tc39/proposal-logical-assignment (last discussed in 2018-03 meeting). The consensus was that the proposal could not advance until ??
landed (we didn't want to add ||=
without ??=
at the same time).
We'll be able to discuss it again soon! 😃
What a fast answer! I'm happy to read that, I'll star the repo to participate when the time comes.
I open this issue to talk about nullish-coalescing assignment operator (
??=
) because I think it's maybe related to the nullish-coalescing operator. I was suprised to not see it in this current proposal because it could be really useful (as useful as a syntaxic sugar can be, at least).The following example make use of
proposal-class-fields
. Something like that:or
would become
As prior art:
What do you think about it?