Thanks for the info, Ted, however all the braces are still not required (by that I mean that if designed differently, the language could do with out them). We can have multiline conditional statements in VFP and don't need all these extra delimiters. The same is true in other languages. I just get tired the extra stuff that could be more concise, but I have to deal with it. I don't code C#, but do code JavaScript.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Roche Sent: Wednesday, September 27, 2006 2:33 PM To: [EMAIL PROTECTED] Subject: Re: [NF] Python - Thinking Differently On 9/27/06, Russell Campbell <[EMAIL PROTECTED]> wrote: > Hey, maybe we can switch to discussing Or perhaps start a new thread with a new subject? > how JavaScript and C# (I think) do > this: And PHP, too, iirc. Although I think semi-colons are required on the ends of lines that are complete (not opening or closing blocks). > > IF (expr) { > Some code > } else { > Some other code > } > > Why the IF can't suffice to start the block Because IF does not necessarily require a block. IF LEFT(url,7) != "http://" url = "http://" + url; For example, could be a complete IF... THEN statement. > and the ELSE by itself Probably for simillar reasons. Braces define the block, which can be used with a number of different conditional constructs. IF and ELSE IF testing conditions may also take up several lines, so the brace tells you where the test ends and the conditional code begins. > 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. And here we go back to the original argument. Try it. Or not. If you try it, you may be in the vast majority who tried it and found it more intuitive than they thought at first. Or you may decide you prefer delimiters. But you will not know until you have tried. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.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.

