Follow

tab width (in a monospaced editor)

if you answer more, please elaborate

that's a lot of spaces for a tab, what kind of language do you use?
-F

@Felthry i don't actually *use* tabs but i have them set to display as 8 cos that's what ghc interprets them as

@Felthry glasgow haskell compiler. so i guess i should have said haskell since being a layout sensitive language it's necessarily dictated by the standard

but yeah no one actually uses tabs in haskell because it's too much trouble, and actually indenting by 8 would make you fall off the page pretty fast

@g layout sensitive, like python you mean? we don't know haskell
-F

@g also yeah we got used to 2 because that's the standard tab width in MATLAB and Octave
-F

@Felthry basically yeah, but the rules are a bit different from python's ofc

@g well yeah, naturally, every language has its own syntax
-F

@Felthry is it weird i am not at all surprised no one chose 3?

@curls i would have been surprised if anyone at all chose 1, 3, or more (and somoene did choose more, and i was surprised)
-F

@curls apparently the reason they chose more is that a tab is syntactically equivalent to eight spaces in haskell, a language that uses indentation for syntax, similar to python
-F

@Felthry well if you assume most people select based on preference, and 1 is too little, 5+ is too much, and 2 and 4 are ok values, than statistically 3 might be someone's preference, yet somehow no one selected that. feels like it just looks off somehow, maybe because it's an odd number.

@Felthry voted four spaces but there's an asterisk because in PICO-8 we use one space

- 🎒

@lorxus huh! unexpected

also unexpected that someone actually voted 3 finally
-F

@Felthry We use 8! Initially mostly because it was Vim's default, but it also makes reading easier.

@Felthry (And hard tabs let us use Really Wide Tabs without messing up anybody else!)

@Felthry Not for any particular language or because of weird language-specific stuff, we just use 8 for basically everything.

@Felthry Although honestly 8 might be a bit too wide, we've been kinda considering switching to 6.

@Felthry 8 spaces are the default in nano and I'm too lazy to change it

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!