Python Rocks! - get rid of colons

Sposhua sposhua at my.pc
Wed Jan 19 06:30:18 EST 2000


On 18 Jan 2000, Thomas Hamelryck wrote:

> Not necessarily. I've been using python for about a year or so and I still
> dislike indentation. Indentation can make your code less readable and leads to
> mysterious errors. I'm sure the strict use of indentation keeps a lot of potential users
> away from python. However, I feel that the other features of the language 
> outweigh this disadvantage.

I'm one of the "prefers indentation to {}" ppl, and I'd just like to add: whe
the heck do we need colons (:) at the end of if's 'n loops anyway? The only loss
I see is to these 1-liners:

if a==b: eric=idle

What's wrong with:

if a==b
	eric=idle

(oh, and wouln't it make life easier to change == to = and let python work out
when it is assingment and when it is comparison?)




More information about the Python-list mailing list