tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Do all -current compilers support C23 typed enum syntax?



> On Dec 3, 2026, at 11:31 PM, Chris Hanson <cmhanson%eschatologist.net@localhost> wrote:
> 
> On Dec 3, 2026, at 7:54 PM, Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> 
>> More generally, compilers exist to serve their users, not to
>> straitjacket them.  If the coder has to work around the compiler, the
>> compiler is broken, regardless of what specs it might conform to.
> 
> In general, this is not a fruitful line of discussion: Compilers do exist to serve their users, but those users have many different and competing needs, and optimization for both speed and size are among them. And the language specification is ultimately what defines “broken” when it comes to how to best meet those needs.

To split hairs a little, the language specifications only say what is
nonconforming, not what is broken. But if, for the moment, you don't
split such hairs, I would note that the language specification does
not have a monopoly on the notion of "broken." An implementation can
be conforming and yet be "broken" in the usual sense of the word.
For example, fprintf could return zero each and every time it is
called. This does not violate the standard, yet some people might
reasonably call such an implementation broken.


Home | Main Index | Thread Index | Old Index