Hacker News new | ask | show | jobs
by teytra 989 days ago
TABs should be used for indentation, making it line up pretty.

SPace is for separating words.

Modern editors (and old ones too) should be able to show what is a TAB, so there is no reason to be confused.

The problem is that people think of TABs as a certain number of spaces, as if an indentation must be a certain number of spaces. In Python or Yaml etc, the logical construct is to have "one indentation level" for things like the statemants that belong to an if, or whatever. Requiring people to put in a somewhat randomly chosen number of spaces is just silly. It is "one level", so the logical choise would have been to put in one symbol to designate this fact, then use the settings of the editor to show it as you want (how many "spaces" to move), and this can change depending on personal choice, the monitor you use, etc.