[TriLUG] Broad question

Steve Litt via TriLUG trilug at trilug.org
Mon Sep 4 17:14:17 EDT 2023


William Sutton via TriLUG said on Mon, 4 Sep 2023 13:29:52 -0400 (EDT)


>One more negative about Python:  the use of indentation to determine 
>scope.  That's just a horrible idea.

1) With indentation based scope, you never again need to count curly
   braces.

2) You never again have your indentation depart from what's really
   happening.

3) No more brace placement feuds. GNU! No, Whitesmith! Oh HELL no, K&R!
   No way, Ratliff! Ratliff's ridiculous, use Pico! Oh never mind,
   we'll just each do it our own way.

4) With indentation based scope, you know exactly what's going on at a
   glance.

5) With indentation based scope, the interpreter checks your
   indentation against your code, lessening the chance of you doing
   something you didn't intend to do.

Obviously, the one downside is that everyone in the organization must
agree on tabs vs spaces and stick to their choice religiously.

SteveT


More information about the TriLUG mailing list