Re:Boring Python: Code Quality
by dontlaugh on Tuesday December 20, 2022 @09:10AM
(#34066099)
Not necessarily. Consistently indenting with tabs and aligning with spaces does work, but is tricky to enforce.
[ Parent
| on HN ]
Re:Boring Python: Code Quality
by Stratoscope on Tuesday December 20, 2022 @12:05PM
(#34068766)
The key to success with tabs in any language is simple: Don't use alignment.
Instead, only use indentation.
It is interesting to note that Black-formatted code uses indentation only and never uses alignment. It would be perfectly compatible with tabs, unlike Google-formatted code which relies heavily on column alignment.