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


_______________________________________________
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.

Reply via email to