Question: what should ?= do on a programming language?

comments (single view)

operator (like equals) or statement (like assignment)?

i guess “in `var ?= val;`, assign val to var if var is nullish (or possibly falsy)“

(after a quick mdn search, apparently javascript has this, as ??=)

View all comments