News for hackers. Stuff that matters.
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.
Re:C – Preliminary C2x Charter by xioxox on Thursday March 17, 2016 @02:30PM (#11306465)
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.
Re:C – Preliminary C2x Charter by adrusi on Thursday March 17, 2016 @12:06PM (#11305242)
How about just type parameters that let you implicitly get sizeof parameters and pass function pointers without having to unportably cast them.