48 ms·
In Lisp style, there is a "local maximum" (global?). Deviations from the style are obvious losers. In C, there are many choices, which are all viable. int ma
by kazinator 9y ago
In Lisp style, there is a "local maximum" (global?). Deviations from the style are obvious losers. In C, there are many choices, which are all viable.
int main(void)
{ FILE *f = fopen("commands", "r");
if (f)
{ char line[512];
while (fgets(line, sizeof line, f))
{ ... }
fclose(f);
return 0; }
else
{ printf("failed to open file\n");
exit(EXIT_FAILURE); } }
- DonaldFisk 9y agoThe many choices available for C are the problem. I write C in K&R style, but that makes me a heretic in many places. Java programmers have sensibly agreed on a single style, despite there being as many choices for Java as there are for C.