[Python-ideas] Javascript Destructuring Assignment

Josiah Carlson jcarlson at uci.edu
Thu Mar 8 06:52:42 CET 2007


Ron Adam <rrr at ronadam.com> wrote:
[sni[
> Trying a different format.   (This can't be a serious proposal unless it 
> can be made simple to understand.)
> 
>       '[]'  for unpack items, these can be nested.
>       '.'   a single unchanged item
>       '.n'  for next n unchanged items
>       '*n'  for packing next n items
>       '*'   pack the rest of the items, use at the end only.
>       ''    Null, don't change anything

Anything with a . or * is going to be *very* confusing to write and
maintain.

 - Josiah




More information about the Python-ideas mailing list