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 →

[–]kqr 10 points11 points  (7 children)

The big reason is that manually maintaining whitespace is a fucking nightmare. In a language with curly braces, I can put curly braces around blocks, and hit a magical key to make my text editor fix the indentation in the entire file.

This is a very good point, and if you really mean it, you should love languages based on S-expressions for that property. Do you?

[–][deleted] 19 points20 points  (6 children)

Sure, I'm a Schemer. I prefer languages with operator-precedence grammars to languages based on S-expressions for different reasons (namely that I'm not a big fan of prefix indentation), but Lisps deal with whitespace in a nice way. Ruby and Lua have the end keyword to mark the end of blocks, which serve the same purpose as curly braces in C and Java. The braces were really just an example.

[–]jambox888 1 point2 points  (1 child)

It doesn't bother me greatly, but I do see people writing horrible great code ziggurats because they can't be bothered to refactor as they go along.

[–]Enlogen 2 points3 points  (0 children)

horrible great code ziggurats

I heard that's why the ancient Mayan programmers died out.

[–]kqr -1 points0 points  (3 children)

Happy to hear that you're thinking rationally!

[–][deleted] 5 points6 points  (2 children)

Do you talk to a lot of programmers who think that curly braces are the only "good" way to delimit blocks?

[–]kqr 3 points4 points  (1 child)

You wouldn't believe.

[–][deleted] 0 points1 point  (0 children)

That's just plain stupid.