▲ 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
[–] JackbyDev@programming.dev 3 points 2 years ago (1 child) That example is using tabs for both indentation and alignment. The article you linked even says not using tabs for alignment is a solution. Do not use tabs for alignment. In such case given example should look like: fun foo x = --->let val abs = if x > 0 ---> then x ---> else -x --->in --->--->(* ... *) --->end permalink fedilink source parent hideshow 2 child comments replies: [–] zagaberoo@beehaw.org 0 points 2 years ago (1 child) Yes, but keep reading. That strategy is a pain to maintain especially across editors. permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 1 point 2 years ago Many styles are difficult to maintain, I'm not saying it is or isn't. I'm saying that using only spaces for alignment will not let your alignment get messed up with various tabstops settings. permalink fedilink source parent
[–] zagaberoo@beehaw.org 0 points 2 years ago (1 child) Yes, but keep reading. That strategy is a pain to maintain especially across editors. permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 1 point 2 years ago Many styles are difficult to maintain, I'm not saying it is or isn't. I'm saying that using only spaces for alignment will not let your alignment get messed up with various tabstops settings. permalink fedilink source parent
[–] JackbyDev@programming.dev 1 point 2 years ago Many styles are difficult to maintain, I'm not saying it is or isn't. I'm saying that using only spaces for alignment will not let your alignment get messed up with various tabstops settings. permalink fedilink source parent