r/shittyprogramming • • Apr 23 '19

Space efficient & lines up nicely

Post image
521 Upvotes

58 comments sorted by

View all comments

Show parent comment

12

u/JonathanSwaim Apr 23 '19

How about a compromise

void function ()
{
  Code}

6

u/illiarch Apr 24 '19

Now you're playing with fire.

4

u/[deleted] Apr 24 '19

How about a function for your function

void function() { function(); }

4

u/loveofhate Apr 24 '19

I think all languages agree with how the ending brace is. I think a better compromise would be

void function ()
                 {
  Code
}