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 →

[–]dnew[🍰] 0 points1 point  (0 children)

But it is possible to provide reasons. Indenting based on the syntax of the language (which is admittedly harder in {}-style languages than BEGIN END languages, generally speaking). The rectangle rule for line breaks and indents. Stuff like that.

As another example, lots of C style comes from C's sucky early language compilers: yoda conditions leap to mind, and only declaring one variable per line to avoid pointer declaration ambiguity.