I’d like to get an idea of the BJS communities’ stance on tabs vs spaces, which is a very common and sometimes passionate argument.
I think Babylon would benefit from using tab for a number of reasons:
- Accessibility: Tabs are easier to use for many individuals with physical or neurological disabilities.
- Size: Spaces take up 4 times as much space as a tab in Babylon’s case (4 bytes for spaces and 1 byte for tabs in UTF-8)
- Customizability: Developers working on or with Babylon can configure their editors to render tabs as 2, 4, 8, etc. spaces
- Tabs are easier to use for new developers. When using spaces, some will actually press space 2/4/8 times instead of using the tab key
- We use the tab key, not the space key to indent- doesn’t it make more sense for the tab key to insert a tab instead of spaces?
prettier/prettier#7475 has a significant amount of discussion I spent hours going through.
What do you all think?