Py3K idea: why not drop the colon?

Neil Cerutti horpner at yahoo.com
Fri Nov 10 08:54:04 EST 2006


On 2006-11-10, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Thu, 09 Nov 2006 14:44:21 -0600, Tim Chase
><python.list at tim.thechases.com> declaimed the following in
> comp.lang.python:
>
>> A few arbitrary warts per-dictum of BDFL are fine though...it 
>> still looks much cleaner compared to PHP & Perl ;-)
>>
> 	Or line continuation in REXX... Where you get such oddities as:
>
> 	call xyz(a, b, c, ,
> 			d, e, f)
>
> That is NOT a NULL argument between c and d... The first comma
> is the argument separator, the second comma is the
> to-be-continued marker

Eyiyi! That's yugly.

The colon's main purpose seems to be to allow one-liners:

Easy to parse: if a < b: a += 1
Hard to parse if a < b a += 1

-- 
Neil Cerutti
When you're in the public eye, it's wrong to cheat on someone, unless
you're very careful. If you're normal and no one's going to know, then
do it. --Paris Hilton



More information about the Python-list mailing list