Linked by Eugenia Loli on Sat 15th Jul 2006 22:45 UTC
.NET (dotGNU too) Jeff Cogswell writes: "I'm about to make a confession. Even though I've written several books and articles about C++, I have a secret: C++ isn't my favorite language. I have lots of languages that I use, each one for different purposes. But the language I consider my all-time favorite is Python."
Thread beginning with comment 143535
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Python is . . .
by eosp on Sun 16th Jul 2006 15:01 UTC in reply to "Python is . . ."
eosp
Member since:
2005-07-07

Assuming you're a C/Pascal/Algol/etc programmer, do you use that indentation anyway? Probably. So it's just using something you use anyway and making it required.

Reply Parent Score: 1

RE[2]: Python is . . .
by Cloudy on Sun 16th Jul 2006 18:15 in reply to "RE: Python is . . ."
Cloudy Member since:
2006-02-15

Except that

a) using end-of-line as end-of-statement means that idioms that put multiple statements on a line for readability are not possible

and

b) the tab substitution rule means that you can't really tell by inspection what the indentation of a program really is.

Reply Parent Score: 1

RE[3]: Python is . . .
by Get a Life on Sun 16th Jul 2006 18:57 in reply to "RE[2]: Python is . . ."
Get a Life Member since:
2006-01-01

Before anyone else moderates the repeat of the same inaccurate information up, may I suggest that people look at "statement list" in the Python Reference Manual. You can find it under Compound statements. In short you can do this:

a[i] = n1; i += 1
a[i] = n2; i += 1
a[i] = n3; i += 1
a[i] = n4; i += 1

if you really must.

Reply Parent Score: 4