Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tabs instead of spaces.




Spaces have won already. It is the default setting across code editors now.

If your code editor told you to use PHP, would you?

Would that mean it's good taste?

Elastic tabstops are good taste. Tabs should tabulate.

But limited editor support, and some implementations have poor performance.

https://nick-gravgaard.com/elastic-tabstops/


One user is able to fit more code into LLM context window since tabs take one token and spaces take 4.

https://old.reddit.com/r/ChatGPTCoding/comments/15s62yl/save...


Did these systems really not learn to recognize a run of four spaces as a single token, despite all the Python source code fed to them?

For one tokenizer, a couple years ago.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: