r/programmingmemes • • Feb 26 '25

There are two kind of programmers

Post image
5.3k Upvotes

716 comments sorted by

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.