|
|
|
|
|
by booleandilemma
1144 days ago
|
|
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? |
|
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.