▲ 342 ▼ What are your programming hot takes? (lemmy.ml) submitted 2 years ago by 257m@lemmy.ml to c/programming@programming.dev 886 comments fedilink hide all child comments
[–] xigoi@lemmy.sdf.org 1 point 2 years ago (1 child) A newline is the separator between lines, so the concept of length doesn't make sense for it. permalink fedilink source parent hideshow 2 child comments replies: [–] mindbleach@sh.itjust.works 1 point 2 years ago (1 child) Correct. And a tab is the separator between stops. permalink fedilink source parent hideshow 2 child comments replies: [–] xigoi@lemmy.sdf.org 1 point 2 years ago (1 child) Indeed. It's a separator, so using it for indentation doesn't make sense. permalink fedilink source parent hideshow 2 child comments replies: [–] mindbleach@sh.itjust.works 1 point 2 years ago Stops are indentation. They're what you indent... to. Tab goes to the next stop, the same way newline goes to the next line. Exactly the same way. If you write more text before the next line, the amount of whitespace shrinks. That doesn't mean the "length" of a newline changes. It always goes one line. A tab always goes one stop. permalink fedilink source parent
[–] mindbleach@sh.itjust.works 1 point 2 years ago (1 child) Correct. And a tab is the separator between stops. permalink fedilink source parent hideshow 2 child comments replies: [–] xigoi@lemmy.sdf.org 1 point 2 years ago (1 child) Indeed. It's a separator, so using it for indentation doesn't make sense. permalink fedilink source parent hideshow 2 child comments replies: [–] mindbleach@sh.itjust.works 1 point 2 years ago Stops are indentation. They're what you indent... to. Tab goes to the next stop, the same way newline goes to the next line. Exactly the same way. If you write more text before the next line, the amount of whitespace shrinks. That doesn't mean the "length" of a newline changes. It always goes one line. A tab always goes one stop. permalink fedilink source parent
[–] xigoi@lemmy.sdf.org 1 point 2 years ago (1 child) Indeed. It's a separator, so using it for indentation doesn't make sense. permalink fedilink source parent hideshow 2 child comments replies: [–] mindbleach@sh.itjust.works 1 point 2 years ago Stops are indentation. They're what you indent... to. Tab goes to the next stop, the same way newline goes to the next line. Exactly the same way. If you write more text before the next line, the amount of whitespace shrinks. That doesn't mean the "length" of a newline changes. It always goes one line. A tab always goes one stop. permalink fedilink source parent
[–] mindbleach@sh.itjust.works 1 point 2 years ago Stops are indentation. They're what you indent... to. Tab goes to the next stop, the same way newline goes to the next line. Exactly the same way. If you write more text before the next line, the amount of whitespace shrinks. That doesn't mean the "length" of a newline changes. It always goes one line. A tab always goes one stop. permalink fedilink source parent