News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by kazinator on Friday March 30, 2018 @12:24AM (#16713652)
I've written a bit of code formatted rather like this:

    void foo(int x)
    { if(x == 0)
      { bar(); } }
That is workable. I have adhered to it (mostly) in this Yacc grammar file: http://www.kylheku.com/cgit/txr/tree/parser.y

Just in the grammar; not in the supporting functions.

It's an attractive style for C statements embedded in another language, because they look more like capsules somehow.

There are no comments on this comment yet.