4 Feb 2022 4 Feb '22
Yurii Karabas writes:
I am proposing to add smth like JS destructing assignment to python. Basically, it will allow unpacking any mapping (should have __getitem__ and keys() methods) into variables.
Ideas like this have been suggested before, with a number of variations on syntax (specifically with unpacking into a tuple, usually notated without parentheses).
I don't recall the more principled objections, but FWIW I'm about -0.5 because IAGNI, and it's one more thing to learn.