The Artima Developer Community
Sponsored Link

Weblogs Forum
Cat is all about Tuples

15 replies on 2 pages. Most recent reply: Nov 21, 2006 5:27 PM by Andy Dent

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 15 replies on 2 pages [ « | 1 2 ]
Andy Dent

Posts: 165
Nickname: andydent
Registered: Nov, 2005

Re: Cat is all about Tuples Posted: Nov 21, 2006 5:27 PM
Reply to this message Reply
Advertisement
> Definitely not! indeed, the usual interpretation of the
> list is that a list contains the same type of elements and
> it grows dynamically, whereas a tuple contains a static
> amount of different kind of elements.

In Python (which has influenced much of my thinking in the last few years, including how I write C++ code), the only distinction is lists have dynamic contents, tuples are static.

What benefit is there to generally assuming homongenous content in one versus the other? I realise this is extremely useful in specific circumstances, at least assuming all items of a list support a given callable signature or can handle a given message (for Todd & other Smalltalkers).

Flat View: This topic has 15 replies on 2 pages [ « | 1  2 ]
Topic: Cat is all about Tuples Previous Topic   Next Topic Topic: TurboGears Jam, January 14-16 2007, Ann Arbor, MI

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use