Email or username:

Password:

Forgot your password?
Ludovic Courtès

The GCC release notes mention C23 features: type inference, and ‘constexpr’. Yes, C. 😱
gcc.gnu.org/gcc-13/changes.htm

1 comment
Ramin Honary

@civodul
So C is going to standardize what C++ did years ago and redefine the semantics of the "auto" keyword.

That might be nice, I suppose. It would make it easier to declare one-off "struct" and "union" data types without always declaring an associated typedef for it, since now I can just declare the type "auto" and let the constructor expression speak for itself, no need to type the name of the datatype twice.

Although it might be another 10 years before people feel comfortable using this feature regularly, out of a fear of not being able to compile their code on older C compilers.

open-std.org/jtc1/sc22/wg14/ww

@civodul
So C is going to standardize what C++ did years ago and redefine the semantics of the "auto" keyword.

That might be nice, I suppose. It would make it easier to declare one-off "struct" and "union" data types without always declaring an associated typedef for it, since now I can just declare the type "auto" and let the constructor expression speak for itself, no need to type the name of the datatype twice.

Go Up