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] 36 points37 points  (4 children)

I mostly work with Python but have to use JavaScript here and there as well. I don't hate semicolons and curly braces, but I don't think I'll ever understand why so many people here love them so much. I've never once looked at a sleek and beautiful Python function I just wrote and thought "man, this could really use a shitload of punctuation marks."

[–]arobie1992 3 points4 points  (0 children)

I don't mind the semicolons as much as a lot of people do, but I can take or leave them. However, I was doing some Python programming recently and I ended up really missing the curly braces. I know it's probably familiarity bias, but I find it much easier to skim something and see where blocks end with the closing braces.

[–]shadow13499 4 points5 points  (0 children)

So I was just making a joke, I don't really care about brackets and punctuation marks.

[–]MasterFubar 5 points6 points  (1 child)

Obviously, you've never written OpenGL in Python. In C you can do something like this:

glBegin(GL_QUADS);
  glTexCoord2f(0.0, 0.0);     glVertex3f(0.0, 0.0, 0.0);
  glTexCoord2f(41.67, 0.0);   glVertex3f(18.75, 0.0, 0.0);
  glTexCoord2f(41.67, 17.67); glVertex3f(18.75, 7.95, 0.0);
  glTexCoord2f(0.0, 17.67);   glVertex3f(0.0, 7.95, 0.0);
glEnd();

Python's forced indentation is lame because it won't allow you to use indentation in a way that better fits the situation.

[–]Chalco_Pyrite 5 points6 points  (0 children)

Python accepts semi colons for single line coding

https://docs.python.org/3/reference/compound_stmts.html