Linked by Amjith Ramanujam on Tue 5th Aug 2008 16:48 UTC
Thread beginning with comment 325707
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Have python lived out its usefulness?
by unoengborg on Tue 5th Aug 2008 23:42
in reply to "RE: Have python lived out its usefulness?"
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;
}
RE[3]: Have python lived out its usefulness?
by modmans2ndcoming on Wed 6th Aug 2008 01:08
in reply to "RE[2]: Have python lived out its usefulness?"






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.