Re: feature req: passing sequences

new topic     » goto parent     » topic index » view thread      » older message » newer message

After calling x = get_position(), x is now a sequence of 2 values. So why doesn't (set) position, which seems to be the reverse operation, not accept x? Instead, it requires the programmer to break up x into 2 pieces; x[1],x[2] More work for the programmer, and just another idiosyncrasy to remember.

Symmetry is attractive both in faces and in programming languages.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu