News for hackers. Stuff that matters.
Re:Let’s Build a Web Server. Part 1 by ternaryoperator on Friday April 03, 2015 @08:54PM (#9319438)
In the first versions of C, 'true' was not a keyword, so for(;;) was the way an endless loop was encoded. After that, it became the convention.
Re:Let’s Build a Web Server. Part 1 by machosx on Saturday April 04, 2015 @12:16AM (#9319879)
Why not just use while(1)?
Re:Let’s Build a Web Server. Part 1 by ufo on Saturday April 04, 2015 @01:05AM (#9319971)
Personal preference. Some people think "for(;;)" looks nicer.
Re:Let’s Build a Web Server. Part 1 by z92 on Saturday April 04, 2015 @04:52AM (#9320388)
the "for" version is also shorter by a single byte.