News for hackers. Stuff that matters.
Re:Porting the Go compiler from C to Go by lutusp on Friday April 25, 2014 @01:29PM (#7647840)
Yep, that's pretty weird. It harks back to the early days of C. When I first saw the currently recommended form:

    int main(int argc, char **argv) {
      //body..
    }
I thought it was nice but not obviously advantageous, but over the years I've come around to thinking it makes code easier to follow. Even many bash shell scripting guides now recommend a similar form:

    for x in y; do
      # body
    done
Re:Porting the Go compiler from C to Go by foxhill on Friday April 25, 2014 @04:28PM (#7648863)
it certainly helps when your function isn't as simple as main..!