Article View: comp.lang.c++
Article #1002Yet another digression (was Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthesis f...
From: Janis Papanagnou
Date: Mon, 23 Nov 2026 10:06
Date: Mon, 23 Nov 2026 10:06
43 lines
3969 bytes
3969 bytes
On 2026-11-22 18:04, Ross Finlayson wrote:
>
> [...] Then,
> for example there's "blank line at the end of a file or no blank line",
(Note that your wording is expressing a shifted perspective.)
> for example Java-style has "no trailing line", here it's that
> the files always have a trailing empty line, then that for
> accounts like "cat all the files" that they're not ellided.
I've never heard about "blank line at the end of a file". I
suppose what you mean here is the effect that may be described:
(a) every line should be terminated by a newline character,
(b) some editors seem to display that proper line termination
(for the last data line) as an empty line on their GUI.
Note that this is an issue some editors introduce by their way
of _representing_ a text, and not a property of the text data.
A _file_ containing data (with line terminators '\n')
line one\n
line two\n
...
last line\n
has no "empty last line" (whatever your editor displays).
The consequence of editors displaying a spurious empty line
when all lines (including the last) are consistently terminated
with a newline character is obviously that folks using such
editors and have a tendency to consider a [spurious appearing]
"empty line" as unnecessary ballast (and omit line termination)
may run into problems like the 'cat' case you hinted on.
Folks are free to use more sophisticated editors, or configure
the ("misbehaving") editors to behave properly (if they allow
that), or just live with the consequences (and disseminate that
data problem further into the development team).
Janis
>
> [...]
Technical Details
Message-ID:
<11e136t$f9ab$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dg2uf$3vgth$1@kst.eternal-september.org> <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com> <11diid8$q4aj$2@kst.eternal-september.org> <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com> <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me> <11djsoh$17he7$1@dont-email.me> <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com> <11dl9ou$1p00u$1@kst.eternal-september.org> <11dm94c$21u9i$1@dont-email.me> <11dmbq9$s03n$7@dont-email.me> <11dmhg2$24tb6$1@dont-email.me> <11dmib8$s03n$9@dont-email.me> <11dmqbl$289i4$1@dont-email.me> <11dmu0s$s03n$10@dont-email.me> <11dmuv3$2a3c0$1@dont-email.me> <11dnr4c$2lhv9$1@kst.eternal-september.org> <11doth7$2vhee$1@dont-email.me> <11dqpqg$3masv$2@dont-email.me> <11drvdj$12fg$1@dont-email.me> <11dt66g$fjb5$2@dont-email.me> <11dui6a$scjp$1@dont-email.me> <SpOcnXL7lP_FgJ72nZ2dnZfqn_idnZ2d@giganews.com> <RdadnUbexs0JvZ72nZ2dnZfqnPednZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c++,comp.lang.c Subject: Yet another digression (was Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthesis for proper evaluation?)) Date: Mon, 23 Nov 2026 11:06:21 +0100 Organization: A noiseless patient Spider Lines: 43 Message-ID: <11e136t$f9ab$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dg2uf$3vgth$1@kst.eternal-september.org> <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com> <11diid8$q4aj$2@kst.eternal-september.org> <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com> <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me> <11djsoh$17he7$1@dont-email.me> <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com> <11dl9ou$1p00u$1@kst.eternal-september.org> <11dm94c$21u9i$1@dont-email.me> <11dmbq9$s03n$7@dont-email.me> <11dmhg2$24tb6$1@dont-email.me> <11dmib8$s03n$9@dont-email.me> <11dmqbl$289i4$1@dont-email.me> <11dmu0s$s03n$10@dont-email.me> <11dmuv3$2a3c0$1@dont-email.me> <11dnr4c$2lhv9$1@kst.eternal-september.org> <11doth7$2vhee$1@dont-email.me> <11dqpqg$3masv$2@dont-email.me> <11drvdj$12fg$1@dont-email.me> <11dt66g$fjb5$2@dont-email.me> <11dui6a$scjp$1@dont-email.me> <SpOcnXL7lP_FgJ72nZ2dnZfqn_idnZ2d@giganews.com> <RdadnUbexs0JvZ72nZ2dnZfqnPednZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 23 Nov 2026 10:06:22 +0000 (UTC) Injection-Info: dont-email.me; logging-data="501067"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19W8pZyuzfjoip6x2EnVIVY"; posting-host="02963b55aa98452647ecc74439b108ae" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:D9J52nfh+ENu5lDT7S5JJ7qsEyg= sha256:7MNSWiOBeHV0H9QCDDo4zMMQ+eisRRw0se8c1tsZaz4= sha1:/c0Bs01ozVHkyXrX+BjHIDF6jNI= sha256:SGOzfxcmSMntGDgrzPrRXzg/rj2iYa3TJrWCh+eario= Content-Language: en-US In-Reply-To: <RdadnUbexs0JvZ72nZ2dnZfqnPednZ2d@giganews.com>