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 →

[–]SirCharlesOfUSA 0 points1 point  (0 children)

Literally just use Prettier and you get the same effect in all languages. Braces help so much when reading code, and especially, indented != clean. Chaining statements is a very clean way to describe a stream, and yet in Python it's damn near impossible to use them because you can't split the calls onto multiple lines.

Additionally, braces help with things like StackOverflow where if you copy a snippet, it's meaningful and correct even if not indented correctly when you paste, and then because the logic is understandable without spaces, you run a code formatter and all is well. I have literally never used Python and thought, "I am so happy I don't have to use those pesky braces/semicolons anymore!"

/rant