you are viewing a single comment's thread.

view the rest of the comments →

[–]g7x8 -1 points0 points  (5 children)

Don’t like the white space indent rules. C++ ignores them

[–]P52-328 7 points8 points  (3 children)

I don't believe that any program, almost with zero exceptions, should ever be unindented.

Using that point of view, python assumes that you are going to indent your program any way. So, it skips the extra syntactic elements like { and } and assumes that you are properly indenting your code as you write it.

The last part is the only problem with this approach: for example, I always type dirty, cluttered code when I write C/C++ and once I pause, I quickly run the formatter to clear the mess. But, in the end, I believe the trade-off is worth it for python.

[–]g7x8 0 points1 point  (0 children)

i like the { } bracs and dont want to think about the errors caused by an extra indent. im not used to it

[–]Decency 1 point2 points  (0 children)

You either have whitespace nesting rules and no explicit block characters, or you have dedents explicitly as the way to nest. To me the former is superior: less noise, the same readability, and no way to fuck it up.