News for hackers. Stuff that matters.
Re:CRLF is obsolete and should be abolished by perching_aix on Sunday October 13, 2024 @10:34PM (#41833701)
> There's no such thing as a "trailing newline," there is only a line-terminating newline.

Is "line-terminating newline" a controlled / established term I'm unfamiliar with or am I right to hold deep contempt against you?

Because "trailing newline", contrary to what you claim, is 100% established terminology (in programming anyways), so I'd most definitely consider it "existing", and I find it actively puzzling that someone wouldn't.

Re:CRLF is obsolete and should be abolished by oasisaimlessly on Monday October 14, 2024 @12:59AM (#41834339)
"Trailing newline" isn't anymore of a special phrase than "leading whitespace" (or "leftmost banana").
Re:CRLF is obsolete and should be abolished by perching_aix on Monday October 14, 2024 @02:20AM (#41834730)
That is also true, adding to the bafflement factor of it supposedly being "non-existent".
Re:CRLF is obsolete and should be abolished by eqvinox on Monday October 14, 2024 @04:15AM (#41835372)
A trailing newline to me is "\n\n" at the end of a file, i.e. a superfluous empty line. That doesn't seem to be what the root comment is referring to, though?
Re:CRLF is obsolete and should be abolished by perching_aix on Monday October 14, 2024 @07:04AM (#41836361)
I'm referring to files ending with a \n, and I do not see why this wouldn't be a trailing newline. It's a newline... at the end.
Re:CRLF is obsolete and should be abolished by eqvinox on Monday October 14, 2024 @05:12PM (#41842084)
In my head, a trailing newline is a newline, at the end, on its own, a blank line after the last line in a file… that's a file ending in \n\n (or more).

It hadn't even occurred to me until today that anything else could be meant :o