Hey, maybe we can switch to discussing how JavaScript and C# (I think) do
this:
IF (expr) {
Some code
} else {
Some other code
}
Why the IF can't suffice to start the block and the ELSE by itself can't
suffice to end the first block and start the second block, I'll never know.
The { at the end of the IF statement and the } and the { on the ELSE line
are totally unnecessary. I like brevity up to a point. I just think Python
goes a little far with it when it comes to not having block delimiters.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Wednesday, September 27, 2006 1:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [NF] Python - Thinking Differently
On Sep 27, 2006, at 12:10 PM, Vince Teachout wrote:
> I do wish they had chosen some sort of visible block end, though,
> like a brace or something.
To my eye, clearly indented code is quite visible. Braces are only
visible if they are indented properly; if you look at some C or Perl
code where there are multiple statements on a single line, or nested
blocks, with braces and semi-colons as the only separators, you'll
appreciate how difficult it is to read.
Whether the compiler requires it or not, properly indented code is a
Good Thing. Once you accepted that premise, additional block
delimiters seem redundant.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.