Re:C – Preliminary C2x Charter
by dalailambda on Thursday March 17, 2016 @11:31AM
(#11304946)
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.
[ Parent
| on HN ]
We already have C++, so is this required? If you want C with a dynamic vector, you could write C in C++ using std::vector.
Re:C – Preliminary C2x Charter
by dalailambda on Thursday March 17, 2016 @10:17PM
(#11309404)
While it's important to not overload C with features, not adding features to it because C++ already has it isn't very practical.