DEV Community

Discussion on: Would you use python with braces

Collapse
tylerlwsmith profile image
Tyler Smith

No: it's a nonstandard convention that would confuse other developers working on the project and it's not Pythonic. I'm not a huge fan of Python's significant whitespace, but if I'm going to code in Python, I want to make sure I follow the conventions of the language to the best of my knowledge.

Collapse
codemonkey51 profile image
Codemonkey51 Author

I kind of meant this post as: if you could choose would python use braces, or if it was a choice that was widely available and built in, would you use it. And I get your point.

Collapse
tylerlwsmith profile image
Tyler Smith

Ah, I misunderstood–my apologies! My answer is still "no" however: I'd rather have one blessed way of styling the code rather than the kind of semicolons vs no semicolons flame war that the JavaScript community has.

Thread Thread
codemonkey51 profile image
Codemonkey51 Author

I should have clairified it more in the post (I just added that in an edit). I see your point about the semi-colons.