News for hackers. Stuff that matters.
Re:How Old School C Programmers Process Arguments by blikdak on Sunday January 28, 2018 @02:50AM (#16250326)
One thing an old school C programmer would not do is neglect to put parens around their blocks.
Re:How Old School C Programmers Process Arguments by kbob on Sunday January 28, 2018 @06:51AM (#16250901)
Ritchie is the person who made the decision to make curlies optional in C. That's strong evidence he wouldn't add extraneous curlies to his code.
Re:How Old School C Programmers Process Arguments by enriquto on Sunday January 28, 2018 @04:04AM (#16250508)
On the contrary! We force all our blocks to consist of a single statement so that we can always omit the damn parens.
Re:How Old School C Programmers Process Arguments by kqr on Sunday January 28, 2018 @05:40AM (#16250725)
Are you saying you need statements in your loop blocks!? I just added this to a school assignment:

    for (String next = in.readLine();
         next != null && dictionary.add(next);
         next = in.readLine());
...you can sense my contempt for this assignment. I would of course never do this in a real program.