News for hackers. Stuff that matters.
Re:Ask HN: It's 2018, tabs or spaces? by dontJudge on Friday January 05, 2018 @12:10PM (#16079854)
Both. Tabs for indents. Spaces for alignments after the indent level is reached.

Everyone can view code with their preferred indent width. Perfect solution with no flaws or drawbacks. Maybe 1 drawback, it requires advanced tooling (emacs smart-tabs-mode) to automatically handle the indentation/alignment.

Indent width is a visual effect. Mandating an indent width with hard spaces is like mandating the color scheme.

There are no comments on this comment yet.