• @adrianmalacoda
    link
    8
    edit-2
    3 years ago

    Hot take: Tabs are the objectively correct way to do indentation. The main argument I have seen in favor of spaces is that they give you finer control over how the code looks, but semantically, one tab is one level of indentation, and the exact appearance of a tab is best left to editor preference. Nonetheless, I use spaces because everyone else uses spaces, and I would rather be consistent with existing code bases than bikeshed over ultimately unimportant concerns. I suspect this is the reason why spaces became so popular in the first place.

    • @sacredbirdman
      link
      33 years ago

      So, what’s the semantic indentation level for say function arguments when the first is after the function and the others are on new lines aligned with the first? Why not leave indenting to the editor?

      • @adrianmalacoda
        link
        33 years ago

        Tabs for indentation, spaces for alignment. Function arguments do not comprise a level of indentation