Closed jhpratt closed 6 years ago
👋
At the March TC39 meeting the committee decided that null-coalescing assignment was a requirement for Stage 2 advancement.
Whatever syntax/semantics the ??
operator takes will be used when adding the ??=
logical assignment operator.
@jridgewell Awesome! Did not know that. Let's hope that null coalescing will return undefined, not null, which would match this.
Feel free to close this if you'd like; I obviously wasn't aware of that decision.
See here for discussion on the mailing list.
Copying most of my original post for brevity:
After looking at some prior discussion regarding
??
, my original thought could be expanded to nullish, not just undefined, but that wouldn't make as much sense to me, given the difference between the two.