Linked by Amjith Ramanujam on Tue 5th Aug 2008 16:48 UTC
General Development Computerworld is undertaking a series of investigations into the most widely-used programming languages. This time we chat with Guido van Rossum, best known as the author of Python, and currently working for Google, CA where he gets to spend at least half his time developing the language.
Permalink for comment 325747
To read all comments associated with this story, please click here.
luzr
Member since:
2005-11-20


stuff = new Vector();
for(Object obj: somethingIterable){
    if(obj instanceof Thing){
        stuff.add((Thing)obj);
  }
}

6 lines of code... or in python...


Note that you have introduced at least two unnecessary lines with '{' '}'. So in fact, it is "just 4".

Edited 2008-08-05 22:13 UTC

Reply Parent Bookmark Score: 0