Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Opinions on `defer`?
Date: Wed, 08 Jan 2025 11:30:24 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <86sept85nz.fsf@linuxsc.com>
References: <87y0znpik1.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 08 Jan 2025 20:30:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6e19b66cb0c542b6b8c649f7413a0cd9"; logging-data="3071468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/s1XjgUKIkRJLWUh99hM0B2iHE9f6aedg="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:0rvS+cDV9LmOmwQ2dg/6kF1HLPM= sha1:s1HgGkwF1KM4YUfkoeeARS8vIaY=
Xref: csiph.com comp.lang.c:389889
Alexis writes:
> Hi all,
>
> "Modern C" author Jens Gustedt has been posting on his blog about a
> proposed `defer` feature (as provided by e.g. Zig and Go), the most
> recent being:
>
> https://gustedt.wordpress.com/2025/01/06/simple-defer-ready-to-use/
>
> What do people here think about having such a feature in C?
The issue being addressed is one well worth addressing.
The proposed solution ('defer') is awful. If this feature is
being considered for the C standard it should be rejected
out of hand.