Article View: alt.folklore.computers
Article #485Re: “The end of software secrecy is almost upon
From: Nuno Silva
Date: Wed, 21 Oct 2026 00:29
Date: Wed, 21 Oct 2026 00:29
26 lines
2569 bytes
2569 bytes
On 2026-10-20, Lawrence D’Oliveiro wrote: > On Tue, 20 Oct 2026 19:04:55 GMT, Charlie Gibbs wrote: > >> The undisciplined use of GOTOs is bad, agreed. > > Is there such a thing as a *disciplined* use of gotos? > > I find the C code I write tends to do a lot of dynamic resource > allocations. These can sometimes fail with errors. So error recovery > will invariably involve cleaning up those parts of the allocations > which already succeeded. Gotos are no good for this; you need to exit > levels of structure nesting one by one, disposing of allocations as > you go. > > I put together an example here > <https://gitlab.com/ldo/a_structured_discipline_of_programming>. This > is an extension module that offers services to Python code, because > that is just about the worst example I could think of, for those who > think gotos can cut it. IIRC cleanup routines are one of the places where the logic may be such that you can't structure it neatly without gotos. -- Nuno Silva
Technical Details
Message-ID:
<11b910c$3fe2f$6@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6u68$2neta$1@dont-email.me> <11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me> <11b8b2k$p44i$1@dont-email.me> <rXOBS.7015$5Iy.3911@fx04.iad> <11b8h83$3b48o$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Nuno Silva <nunojsilva@invalid.invalid> Newsgroups: alt.folklore.computers Subject: Re: “The end of software secrecy is almost upon Date: Wed, 21 Oct 2026 01:29:00 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <11b910c$3fe2f$6@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6u68$2neta$1@dont-email.me> <11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me> <11b8b2k$p44i$1@dont-email.me> <rXOBS.7015$5Iy.3911@fx04.iad> <11b8h83$3b48o$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 21 Oct 2026 00:29:00 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3651663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JG/GPny9USUBPMhPCXKnD"; posting-host="ab8225503cdf97c5e310b305e5ad7c40" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:etFibb5sOmau30HTe1YBKuUKrFk= sha256:xwTVHm/yriQIo6R4ec6lQ6cK0dDmpJ+DxZTuHDg5k/s= sha1:XAJXPCDV/7kw84Z1yzXLjJ42WvE= sha256:7No9NypHomC8zCfpCalUdokk4aiuKfBJNPYpPDHXWmU=