Which one do you use?
(Hint: the bottom row aren’t styles, but mental disorders)
Edit: I usually use Allman, but my boss uses Whitesmith and a colleage uses K&R. We get along well.
Allman
I grew up holding K+R in god-like status for their work with C and Unix.
Then I saw where they placed the first curly brace and realized they were mortal.
Allman all the way!
Looking at that chart, i think i generally follow K&R but sometimes catch myself switching to Allman without realising it
Started with Allman, moved to K&R and then finally to Python without braces.
GNU, I like the indention of the braces from the loop condition personally. I’ll occasionally do Whitesmiths if I am using an old fashion text editor and forget to indent on my own.
Yeah, GNU is basically a compromise between Whitesmiths and Allman.
(Also (Lisp (notation (really (should (be (nested (parentheses(.)))))))))
with all the hype about Hal over on the AI thread … i found this AI generated images …but who would not want to see this film if it had been made
LOL REALLY?!