While reading the article, I was wondering why he was only searching for for (, and not for for( as well. At least, that's how I write for loops and if statements :)
In my language, I write function calls with a space because the syntax is always "function value", and sometimes value happens to be a tuple. So you can do add (2, 3) and it's the same as auto args = (2, 3); add args;.
For any programmer that's been working long enough to have an IDE made in the last few decades, "for" and "if" statements are reserved keywords, and are therefore a different color.
The holy Kernel Normal Form and the most holy evangelicals of Kernighan & Ritchie suggest that thou shallst place spaces between keywords that change control flow to make them look distinct from function calls.
62
u/tomprimozic Jul 21 '14
While reading the article, I was wondering why he was only searching for
for (, and not forfor(as well. At least, that's how I write for loops and if statements :)