Article View: comp.lang.fortran
Article #546Re: โThe end of software secrecy is almost upon us"
From: Keith Thompson
Date: Sat, 05 Dec 2026 00:01
Date: Sat, 05 Dec 2026 00:01
35 lines
2994 bytes
2994 bytes
BCFD 36 <bcfd36@cruzio.com> writes:
> On 10/19/26 15:08, Scott Dorsey wrote:
>> Thomas Koenig <tkoenig@netcologne.de> wrote:
>>> Scott Dorsey <kludge@panix.com> schrieb:
>>>> Thomas Koenig <tkoenig@netcologne.de> wrote:
>
> [stuff deleted]
>
>> I encounter a LOT of code written by engineers who think they know
>> about
>> new language features but don't really.
>> But what they lose in missing comments, they make up for in spurious
>> gotos.
>> --scott
>
> What kind of engineers are you talking about? A competent software
> engineer would not be using goto statements under any but the most
> unusual conditions. I am not completely sure, but I don't think I have
> used a goto since 1978, except as built in exception handlers for I/O
> statements in Vax Fortran e.g. "READ (10, 100, ERR=910, END=200) NUM"
I count more than 200,000 "goto"s in *.c files in the linux kernel
sources. Some of those are in comments, but the vast majority appear
to be actual C goto statements. Most of them are for error handling.
(And yes, kernel programmers are careful to avoid jumping over
necessary cleanup code.)
Of the 37801 *.c files in the kernel sources, nearly half contain at
least one goto. There's an average of one goto per 127 source lines.
This is not typical of C projects.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11evk9a$26bcl$1@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b4f0o$1qt51$1@dont-email.me> <11b5rvl$9n6$1@panix2.panix.com> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11eveca$23tld$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers Subject: Re: โThe end of software secrecy is almost upon us" Date: Fri, 04 Dec 2026 16:01:44 -0800 Organization: None to speak of Lines: 35 Message-ID: <11evk9a$26bcl$1@kst.eternal-september.org> References: <11amvre$15far$1@dont-email.me> <11b4f0o$1qt51$1@dont-email.me> <11b5rvl$9n6$1@panix2.panix.com> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11eveca$23tld$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 05 Dec 2026 00:01:48 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2305429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NeK1AtJrFq/WTJnUPdkh+"; posting-host="b9c5d73c9e6309fc2c99be91b4e6751c" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:TgW8z3zXI75CoQRGnhg1ivGTPSQ= sha256:Tc+iP8An9Q1EtMVROQpzwjDCf8JrfFpO8/0WIWvEKbA= sha1:Adho0K+5rhZmoyAh8hKTHksfSQc= sha256:unrHvtqlRmPdn2ZHQTjEhtzp/sknzgRkug6v7bXPdts=