[Python-ideas] Javascript Destructuring Assignment

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 6 00:48:09 CET 2007


Brett Cannon wrote:

> I personally am -1 on the idea.  Explicit is better than implicit.

One thing I *would* like to see, that Javascript doesn't
seem to have either yet, is a *-arg on the end of the
unpacking list:

   a, b, *c = [1, 2, 3, 4, 5]

giving a == 1, b == 2, c == [3, 4, 5].

--
Greg



More information about the Python-ideas mailing list