Hacker News new | past | comments | ask | show | jobs | submit login

Not necessarily. Consistently indenting with tabs and aligning with spaces does work, but is tricky to enforce.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: