257m@lemmy.ml to Programming@programming.dev · 1 year agoWhat are your programming hot takes?message-squaremessage-square894fedilinkarrow-up1350arrow-down114
arrow-up1336arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 1 year agomessage-square894fedilink
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up1·1 year agoA newline is the separator between lines, so the concept of length doesn’t make sense for it.
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up1·1 year agoCorrect. And a tab is the separator between stops.
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up1·1 year agoIndeed. It’s a separator, so using it for indentation doesn’t make sense.
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up1·1 year agoStops 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.
How long is a newline?
A newline is the separator between lines, so the concept of length doesn’t make sense for it.
Correct.
And a tab is the separator between stops.
Indeed. It’s a separator, so using it for indentation doesn’t make sense.
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.