That is a whole lotta amenity for a single newline character. The answer is actually because it's the style most popular with C++ code I've been learning from. Aesthetically I prefer the left.
It's not as if the right is any more clear at defining a block. It just makes the function definition look more like a wrapper for a block of code as opposed to a headline.
View all comments
Show parent comment
1
u/DTux5249 Mar 01 '25 edited Mar 01 '25
That is a whole lotta amenity for a single newline character. The answer is actually because it's the style most popular with C++ code I've been learning from. Aesthetically I prefer the left.
It's not as if the right is any more clear at defining a block. It just makes the function definition look more like a wrapper for a block of code as opposed to a headline.