Re:Porting the Go compiler from C to Go
by foxhill on Friday April 25, 2014 @01:21PM
(#7647800)
this is a style i still use today (almost)
although most people think i'm weird for it..
[ Parent
| on HN ]
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