Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Heh, I have a similar visceral reaction to the "open" style: what a waste of precious screen real estate. Now my eyes have to scan a much bigger area in order to see all the relevant information, and I might even have to waste time scrolling around to find what I'm looking for that I would not have had to if only all that unnecessary white space were eliminated.

Putting the brace on the same line also makes it easier to grep for function definitions.

So why not:

    if (
        x>y
       )
    {
      code;
      ...
     }
    }
(I've actually seen that in real code.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: