Inaccurate article! `for {}` in Go acts like a `while (1) {}` loop in C, but the article claims that another form of for loop is the "final form of for loop" for Go.
Otherwise well written and enjoyable.
Otherwise well written and enjoyable.
for (;;) {}
djb uses this a lot.
int c; for(c=0; str[c] != '\0'; c++) {} printf("Length of string = %d\n", c);
C doesn't have a message or a worldview. It's just about saving typing and making common things convenient.