Sujet : Re: Opinions on `defer`?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.cDate : 09. Jan 2025, 14:01:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlohbs$3bs33$3@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 08/01/2025 20:30, Tim Rentsch wrote:
Alexis <flexibeast@gmail.com> 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.
Jens Gustedt is not just some random C programmer - or even just some random C book author. He is an active member of the C standards committee, AFAIUI.
You might not agree with his suggested feature, and perhaps the rest of the C standards committee will reject it - that's why there is a committee, so that different ideas and suggestions can be discussed and considered from different viewpoints.
But his suggestion should /not/ be rejected out of hand. The guy has the qualifications, and done the work, to have the right to be given serious consideration. If the committee read the proposal, consider it, then reject it, then that's fair enough.
You, on the other hand, can proudly boast the qualification "random guy off the internet with strong opinions" - like most of us here. When you give an opinion with no justification or reasoning, /that/ opinion can be rejected out of hand.
Give some reasons why you think it is so awful, and why you think your arguments trump those of Jens Gustedt.