News for hackers. Stuff that matters.
Re:Let’s Build a Web Server. Part 1 by pcthrowaway on Saturday April 04, 2015 @02:19AM (#9320126)
I just started learning Go last night, but I'll hazard a guess: since Go draws heavily from C, but has the for loop as its only looping construct, it seems likely that this habit has carried back into C code written by developers who've used Go, or who've been reading a lot C code written by developers who also use Go.
Re:Let’s Build a Web Server. Part 1 by jsprogrammer on Saturday April 04, 2015 @03:17AM (#9320249)
for(;;) existed way before Go came along.
Re:Let’s Build a Web Server. Part 1 by pcthrowaway on Saturday April 04, 2015 @04:48AM (#9320380)
I'm not saying it didn't, but 'while (true)' would be the more intuitive way to write that in any language besides Go.