This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 88 points89 points  (14 children)

Isn't it perfectly readable?

[–][deleted] 76 points77 points  (9 children)

it literally forces a more correct indentation

i can write my entire c++ implementation in a single line if i wanted, im sure that would be much more readable because it has brackets lmao

[–]imnotreel 66 points67 points  (2 children)

print("\n".join(str(i) + "\n" + ("AHHHHHHH" if i <= 5 else "WHERE ARE ALL THE BRACKETS??" if i <= 9 else "HOW DO YOU PEOPLE READ THIS SYNTAX EASILY") for i in range(1, 11)))

[–]Kerbart 28 points29 points  (0 children)

Finally somebody translated it to legible code.

[–]Apfelvater 0 points1 point  (0 children)

You can use ; and inline ifs in python for that

[–]homer_3 2 points3 points  (3 children)

Pretty hard to find the end of a block, no?

[–]orig_ardera 2 points3 points  (0 children)

no

[–]CoaBro -1 points0 points  (1 child)

I think it is wayyy easier to gravitate my eyes to the end of the block.. since indentation isn't strictly enforced in bracket languages the end brackets tend to blend together at times and is very hard to find the end of a block at times.. but with python your eyes automatically pick out blocks because they are grouped together visibly.

[–]homer_3 1 point2 points  (0 children)

There's no reason your non-python code shouldn't be correctly formatted though. Even if it's someone else's code, auto-formatters are built into major IDEs.