Hacker News new | ask | show | jobs
by nzp 3825 days ago
In case of C it's not just makefiles, in fact I would guess that the reason makefiles use tabs is because there is a historical preference for tabs in C programmers (just a wild guess really). Various C style guides mandate the use of tabs for indentation (and spaces for alignment), for example FreeBSD's Kernel Normal Form Style[0] (which is really an older standard going back to how K&R formatted the code), I think other BSD's use a simmilar style, and Linux kernel coding style[1].

I'm not old enough to know personally, but I have a feeling tabs were preferred in the old days in general at least on Unix platforms. Some of that sentiment might have spilled over into Go.

[0]: https://www.freebsd.org/cgi/man.cgi?query=style&apropos=0&se...

[1]: https://www.kernel.org/doc/Documentation/CodingStyle