
May 27, 2016
3:19 p.m.
On Thu, May 26, 2016, 10:46 PM Rob Cliffe <rob.cliffe@btinternet.com> wrote:
On Thu, May 26, 2016 at 04:10:10PM +0200, Michel Desmoulin wrote: With tuple and list unpacking (a,b) = (1,2)
On 26/05/2016 18:51, Steven D'Aprano wrote: the structure of the LHS and RHS mirror each other, making the meaning intuitive/obvious. Doing the same thing for dicts: { 'a' : a, 'b' : b } = { 'a' : 1, 'b' : 2 } makes the LHS too verbose to be very useful IMO.
But is it intuitive/obvious? Sounds like you think so.
All the examples so far can be done in other, arguably better, ways.
Not for nested destructuring. Maybe my example got lost in the shuffle. No one replied to it.