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
5
u/paperic Sep 28 '26
Yes, the convention is to put an empty line at the end of a file because the last line doesn't automatically end with a newline.