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.
Thread beginning with comment 325707
To view parent comment, click here.
To read all comments associated with this story, please click here.
asgard
Member since:
2008-06-07

The point of concise syntax is not to ease the typing, but to ease the reading (one probably reads the code more than he types it in). So you got the argument wrong.

About static vs. dynamic typing, I have mixed feelings. I think it's useful to have declarations in function parameters and major data structures, but it seems to be too much hassle for local variables and temporary or technical parts of data structures. And even with the declarations, they for the most part miss the interesting stuff, like semantic interpretation (like: If this function returns 0, it means success or not success? What kind of values this function can return?).

Disclaimer: I like Python and don't like Java, precisely because Java feels _really_ bureaucratic with respect to Python.

Reply Parent Bookmark Score: 3

unoengborg Member since:
2005-07-06


And even with the declarations, they for the most part miss the interesting stuff, like semantic interpretation (like: If this function returns 0, it means success or not success? What kind of values this function can return?).


Then, perhaps you should not return a 0. In Java 1.4 you could use a constant e.g:


public static final int SUCCESS=0;


or in later java versions you could use Enumerations

enum ReturnState{
success;
failureType1;
failureType2;
}

Reply Parent Bookmark Score: 3

modmans2ndcoming Member since:
2005-11-09

why not a freaking bool type?

Reply Parent Bookmark Score: 2