1. Another feature request

------ =_NextPart_000_01BD42B9.1C003300
Content-Transfer-Encoding: quoted-printable

The recent discussion of features reminded me of a Python feature: =
multiple item assignment. For example, in Euphoria, you need an =
intermediate value if your function returns a sequence of values:

   integer x, y
   sequence tmp

   tmp =3D get_position()
   col =3D tmp[1]
   row =3D tmp[2]

This intermediate value always irritated me. It seems so klunky! In =
Python, you can write:

   integer x, y

   { x, y } =3D get_position()

When I saw that, I immediately thought: YES! That's the way it *should* =
be done!

Comments? (As if  Robert really wanted to add *another* feature... :) )

-- David Cuny


------ =_NextPart_000_01BD42B9.1C003300

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu