4 ms·
While some might claim this goes against the spirit of C, I think minor support for generics(enough to implement a type safe dynamic array e.g. vector) would be
by dalailambda 11y ago
While some might claim this goes against the spirit of C, I think minor support for generics(enough to implement a type safe dynamic array e.g. vector) would be really useful. And if this did monomorphisation, then performance would still be great.
- adrusi 11y agoHow about just type parameters that let you implicitly get sizeof parameters and pass function pointers without having to unportably cast them.
- xioxox 11y agoWe already have C++, so is this required? If you want C with a dynamic vector, you could write C in C++ using std::vector.
- dalailambda 11y agoWhile it's important to not overload C with features, not adding features to it because C++ already has it isn't very practical.