Am Mittwoch, dem 14.08.2024 um 14:52 +0000 schrieb Ballman, Aaron: > > I would love to see a proposal for adding this GNU extension to ISO C. > > Did nobody do it yet? I could try to, if I find some time. (But I'll take > > a longish time for that; if anyone else > > does it, it would be > great.) > > It's been discussed but hasn't moved forward because there are design issues > with it (the odd way in which it produces > a resulting value, sometimes surprising behavior with how it interacts with > flow control, the fact that it can't be > used in all contexts, etc). The committee was leaning more towards lambdas > despite those being a bit orthogonal.
I do not think this is a fair characterization. We did not see any proposal for ({ }) so it is not clear where the committee is leaning more towards. Lambdas ultimately failed because they were too complex for not having any implementation and user experience in C. I agree though that lambdas could be nicer, but I still have issues with the last type-generic version and I do not have similar objections against ({ }). Martin