Re:Python with Braces
by leni536 on Monday July 08, 2024 @04:43AM
(#40903702)
Sounds good in theory, but I never saw a project that used tabs and didn't look like a complete mess when viewed with the non-blessed tab width.
[ Parent
| on HN ]
Pretty sure the Linux source tree looks fine at a tab width of 2 instead of the blessed 8.
Emacs even "helpfully" auto-converts <tab width> spaces to one tab, no matter where.
It's fine as long as you don't use tabs for visual alignment. Especially C projects tend to do this, and/or have a weird mix of tabs and spaces (e.g. indent by four spaces, but all eight spaces are tabs). That's just silly.
But if you just always indent by n tabs, and align with spaces for visual alignment, then it's not a problem. This is what e.g. gofmt does.