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.



_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/HVUSTZK5KZXJIBDR7XH677XD3MTAFVFX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to