News for hackers. Stuff that matters.
Re:New C features in GCC 13 by booleandilemma on Thursday May 04, 2023 @12:20PM (#35817903)
I do wish there was a programming language that just never added new syntax, ever.

They could call the language "Stone", and then we'd get to say "such and such program is written in Stone", "not written in Stone", etc.

If they keep adding features to C, such as type inference, won't C just ultimately become as feature-laden as C++, albeit on a much longer timescale?

What's the point of that?

Re:New C features in GCC 13 by Keyframe on Thursday May 04, 2023 @03:19PM (#35820742)
hence -std=stone -pedantic
Re:New C features in GCC 13 by tristan957 on Thursday May 04, 2023 @05:45PM (#35822523)
Hare is planning on doing this for what it's worth.
Re:New C features in GCC 13 by booleandilemma on Thursday May 04, 2023 @06:10PM (#35822821)
Hey, thanks for letting me know about this, I'll check it out
Re:New C features in GCC 13 by _kst_ on Thursday May 04, 2023 @09:32PM (#35824293)
There's C90. There's also C99.

As far as ISO is concerned, each edition of the C standard is made obsolete by its successor, but that doesn't impose any obligation on you or on compiler writers. If you have gcc, you can still use `gcc -std=c90 -pedantic-errors` (or c99, or c11, or ...).

Re:New C features in GCC 13 by mananaysiempre on Monday May 15, 2023 @04:31PM (#35954088)
> [T]hey keep adding features to C, such as type inference [...].

The thing about typeof (and its close cousin auto) is that it exposes information that the compiler’s frontend has to know anyway for type checking. That’s why GCC has had typeof for many years, even back when it only spoke pure C. So while it’s a new feature, it doesn’t really have a lot of implications for the rest of the language.