News for hackers. Stuff that matters.
Re:Indentation Style: Notable Styles by bakuninsbart on Wednesday February 26, 2025 @05:04AM (#43182358)
Why? The keywords that indicate brace opening are right there, and adding a whole line with almost no information gain seems a bit unnecessary.
Re:Indentation Style: Notable Styles by voidUpdate on Wednesday February 26, 2025 @05:33AM (#43182505)
I mean people keep going nuts for K&R and it does that for function declarations. It just looks neater to me to have a little bit of space before and after the code inside the block
Re:Indentation Style: Notable Styles by Smeevy on Wednesday February 26, 2025 @09:23AM (#43183838)
Except that your opening brace is now *just wherever*. The information is "Here is the opening brace. Right where it's supposed to be."

Any of these styles can obviously work, but that one little detail brings a consistency that I personally appreciate. Your mileage may obviously differ.