One more question: Would Python figure out an error in the code below?
DO LOOP CONSTRUCT
Code Line 1 && Supposed to be in the loop
Code Line 2 && Supposed to be in the loop
Code Line 3 && Supposed to be in the loop
Code Line 4 && ALSO supposed to be in the loop!!!!!!!!
Code Line 5 && Not supposed to be in the loop.
Code Line 6 && Not supposed to be in the loop.
Code Line 4 is the problem. How would Python catch it? Does it require, as
I alluded to in a previous post, a blank line to end the loop code? I
started thinking that was the case, which would be a better design, but
still not one I'm sold on.
Russell
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Wednesday, September 27, 2006 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [NF] Python - Thinking Differently
On Sep 27, 2006, at 11:38 AM, Russell Campbell wrote:
> What you mention with Eric Raymond and yourself is only about
> getting used
> to it. You mention no advantages except not having to type a few
> extra
> characters and less typing is not an advantage.
It isn't "getting used to it"; it's realizing that there is nothing
to get used to - it feels completely natural. And the advantage is
that you get readable code. Look at the perfectly legal code I posted
in response to John Harvey, and tell me that you would have no
trouble deciphering it. Sure, Fox offers 'Beautify', but all that is
is doing what the programmer should have been doing in the first place.
-- 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.