▲ 164 ▼ Tabs are objectively better than spaces - gomakethings.com (gomakethings.com) submitted 2 years ago by mac@programming.dev to c/programming@programming.dev 176 comments fedilink hide all child comments
[+] Whisp@kbin.social 1 point 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] UlrikHD@programming.dev 5 points 2 years ago (1 child) Tabs work fine, you aren't allowed to mix, indentation must be consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] kevincox@lemmy.ml 0 points 2 years ago Actually I think you can technically mix. They have a "conversion factor". But don't, because then the code will look like crap on any other tab size (defeating the point of using tabs in the first place) I think it would be better that each line needs to start with the exact same bytes to be considered within the same indent level. But I don't think that is the decision Guido made. permalink fedilink source parent
[–] UlrikHD@programming.dev 5 points 2 years ago (1 child) Tabs work fine, you aren't allowed to mix, indentation must be consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] kevincox@lemmy.ml 0 points 2 years ago Actually I think you can technically mix. They have a "conversion factor". But don't, because then the code will look like crap on any other tab size (defeating the point of using tabs in the first place) I think it would be better that each line needs to start with the exact same bytes to be considered within the same indent level. But I don't think that is the decision Guido made. permalink fedilink source parent
[–] kevincox@lemmy.ml 0 points 2 years ago Actually I think you can technically mix. They have a "conversion factor". But don't, because then the code will look like crap on any other tab size (defeating the point of using tabs in the first place) I think it would be better that each line needs to start with the exact same bytes to be considered within the same indent level. But I don't think that is the decision Guido made. permalink fedilink source parent