3 ms·
Better yet, just never do alignment. Obviously readability is subjective, but personally I find alignment is never valuable outside of tables of data, and I'd
by Latty 5y ago
Better yet, just never do alignment.
Obviously readability is subjective, but personally I find alignment is never valuable outside of tables of data, and I'd argue generally having tables of data embedded in your code isn't ideal.
#include<stdio.h>
int main(int argc, char* argv[]) {
printf(
"%s %s %s %s\n",
__FILE__,
__LINE__,
__DATE__,
__TIME__
);
return 0;
}
Reads better to me and avoids the issue entirely. It also plays more nicely with traditional diff tools anyway.
- fstrthnscnd 5y agoYes, that was more or less the argument I was trying to do by the end of my comment: diffing is meant to be space agnostic (the -B option of diff(3)), but since code is committed with formatting, formatting will interfere.