statements and blocks
Alexander Williams
thantos at chancel.org
Fri Jan 28 21:16:33 EST 2000
On 28 Jan 2000 21:13:03 GMT, John Kochmar <kochmar at pitfiend.psc.edu>
wrote:
> print "a"
> print "b"
> print "c"
> print "d"
> print "e"
> print "f"
Maybe this begs the question, but why not:
print "a"
print "b"
# Operational block -- Outputs Crap Level Two
print "c"
print "d"
print "e"
print "f"
... That is, use vertical space and a verbose comment to denote the
block.
Python drives you to make form follow function. You're not actually
setting that block off for any functional reason, its connotational,
not denotational; as such, you should use connotational methods to
convey the difference, in essence, comments and vertical whitespace.
--
Alexander Williams (thantos at gw.total-web.net) | In the End,
"Join the secret struggle for the soul of the world." | Oblivion
Nobilis, a new Kind of RPG | Always
http://www.chancel.org | Wins
More information about the Python-list
mailing list