npmccallum at redhat.com
Mon Jun 15 21:06:39 EDT 2015
It has been 16 years. GCC has had support for many C99 features for a
LongTimeNowTM. Clang has had them since the beginning. Clang also now
has official Windows builds (as well as many other platforms).
Of course, MSVC still lags behind. However, they have started
implementing features, including the following since MSVC 2013 :
* Compound literals
* Designated initializers
* Mixing declarations with code
MS has also implemented most of the C99 libraries and has already
announced complete support for the C99 standard library in MSVC
2015. One of the big elephants in the room is VLAs. MS is unlikely
to ever support them. But, it is also MS's stated policy to only
incorporate C features that are required for C++. I'm not sure that
MIT should hold back support for new C features because MS only wants
to ship a C++ compiler.
So how about it? Can MIT start using C99 features? Even a subset of the
features would be helpful. I particularly care about all the above C99
features that MS implemented plus VLAs. The latter, in particular, can
eliminate a lot of heap allocations.
More information about the krbdev