Open bakkot opened 5 months ago
(From plenary, just capturing here since I don't see it anywhere.)
Consider:
let x = a?.b = c;
What value does x get?
x
(One possible solution is to say that this operator is only legal in statement position, though that's a little awkward to specify.)
My intuition matches the proposed de-sugaring in the README:
let x = (a == null ? undefined : a.b = c);
(From plenary, just capturing here since I don't see it anywhere.)
Consider:
What value does
x
get?(One possible solution is to say that this operator is only legal in statement position, though that's a little awkward to specify.)