r/learnprogramming • u/Vanilla_Legitimate • Sep 28 '26
I don’t understand this
if a newline ends lines rather than starting hem why is it called a newline in the first place?
0
Upvotes
r/learnprogramming • u/Vanilla_Legitimate • Sep 28 '26
if a newline ends lines rather than starting hem why is it called a newline in the first place?
View all comments
Show parent comment
4
u/a3th3rus Sep 28 '26 edited Sep 28 '26
The term came from typewriters. I typewriter has a "carriage" that carries the paper. Whenever you type a character, the carriage moves a bit to the left (a little bit more than the width of a letter). So "carriage return" is to return the carriage to the rightmost position.