3 ms·
> * We can't get tabs right, so use spaces everywhere > [as long as mechanically enforcable, the choice itself is irrelevant] It's not mechanically enforceab
by jstimpfle 2y ago
> * We can't get tabs right, so use spaces everywhere
> [as long as mechanically enforcable, the choice itself is irrelevant]
It's not mechanically enforceable (in practice), that's the point. Forbidding tabs altogether is the most practical and actionable path.
- lifthrasiir 2y agoI'm not sure what you have in mind, but in my mind the mechanical enforcement really means something like clang-format [1] and that surely works. [1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html#usetab https://clang.llvm.org/docs/ClangFormatStyleOptions.html#use...
- jstimpfle 2y agoHave you actually tried? Personally I have evaluated and then abandonded clang-format (for reasons including but not limited to the interplay between macros and indentation), and most tool's support for tab-indentation + space-alignments is flaky to non-existent. I wouldn't want to constrain my setup to one that integrates clang-format just for a needlessly complicated requirement when I could just abandon tabs altogether.
- lifthrasiir 2y agoIf you want to keep space alignments that's honestly to be expected. Exclusively using tabs would work much better, partly for the reason you have said. On the requirement of clang-format itself though... Yeah, that is more like a problem of C and its ecosystem indeed.