"Robert G. Brown" <[EMAIL PROTECTED]> writes:

> Well, yes, but not exactly.  You have to mark up the braces for the sake
> of the compiler, yes, absolutely, but you have some ability to use
> JUDGEMENT as to how to indent -- or if. i=10;
> while (i>0) { a[i] = b[i]; i--; }

Well, you can do

i=10
while i>0: a[i] = b[i]; i-=1

in Python. You *can* put the statements in a compound statement on
the same line, separated by semicolons, if you want.

> Nesting levels of 10+ are not unknown.

Embarrassing. I'll pretend I didn't read that.

Interestingly, you didn't touch on the one actual disadvantage with
Python's indentation sensitivity; when you move blocks of code around,
you need to adjust the indentation level of the code when you paste it
in. But a Sufficiently Smart Editor like emacs makes that easy. (I don't
know what the vi guys do, but I can't be having with them, anyway.)

-- 
Leif Nixon                       -            Systems expert
------------------------------------------------------------
National Supercomputer Centre    -      Linkoping University
------------------------------------------------------------
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to