Open sanjarcode opened 1 year ago
Already know this (and it also happens in Python, AFAIR). But didn't think about it rigorously.
Example:
const x = { a: 1 }; let { a: xx } = x; xx = 99; // x remains unchanged
Is this the consequence of having a global (essentially non-nested, even if not global) symbol table, by the language?
Already know this (and it also happens in Python, AFAIR). But didn't think about it rigorously.
Example:
Is this the consequence of having a global (essentially non-nested, even if not global) symbol table, by the language?