News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by wpollock on Tuesday September 03, 2024 @12:07PM (#41436326)
In the bygone days of ctags, C function definitions included a space before opening parenthesis, while function calls never had that space. I have a hard time remembering that modern coding styles never have that space and my IDE complains about it. (AFAIK, the modern gtags doesn't rely on that space to determine definitions.) Even without *tags, the convention made it easy to grep for definitions.
Re:Greppability is an underrated code metric by mzs on Tuesday September 03, 2024 @12:55PM (#41436780)
space after builtin was recommended instead:

  if (x == 0) { ...
  sizeof (buf);
  return (-1);
  exit(0);