Closed paultag closed 2 years ago
Heh, I actually tried this once in Python 2 and 3. The main issues stemmed from two things:
:+1: my vague emotions as well
While we may in the future implement a special operator that does something like this, I hope we can agree that ordinary Python assignment should continue to be available, whether it's named setv
or something else.
Yeah, we might add a feature sort of like this, but trying to make the default semantics different from Python's is probably not wise.
When doing a setv, magic
(nonlocal)
if the symbol is in a parent node's assignment placeI have no idea if this is doable. Like, at all.
Perhaps it's doable if we work out "Assignment" operators, and store names in parent scopes in the Hy Result object?