Python Rocks! - get rid of colons

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu Jan 20 23:28:04 EST 2000


On Thu, 20 Jan 2000 11:43:21 -0500, Mark Hathaway
<hathawa2 at marshall.edu> declaimed the following in comp.lang.python:


> 
> Also, to counter the argument of someone who gave a wild example of
> using
> the "end", but not enforcing the indentation rules; enforce the
> indentation
> rules AND use "end". It's even clearer that way.

	But...

	If you are inforcing the indentation rules, then the "end"
becomes superfluous to the language parser.

	Being superfluous to the parser means it is effectively a
comment.

	Therefore, it is no different from the suggested usage of
"#end". Using this structure would mean one could also use "#fi",
"#elihw", "#end if", "#wend", or "#end while" (or any other preferred
block delimiter -- heck, even "#{" and "#}" for C-like start and end
markers).

--
 > ============================================================== <
 >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
 >      wulfraed at dm.net     |       Bestiaria Support Staff       <
 > ============================================================== <
 >        Bestiaria Home Page: http://www.beastie.dm.net/         <
 >            Home Page: http://www.dm.net/~wulfraed/             <



More information about the Python-list mailing list