3 ms·
Why? The keywords that indicate brace opening are right there, and adding a whole line with almost no information gain seems a bit unnecessary.
by bakuninsbart 2y ago
Why? The keywords that indicate brace opening are right there, and adding a whole line with almost no information gain seems a bit unnecessary.
- voidUpdate 2y agoI 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
- Smeevy 2y agoExcept 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.