Hacker News new | ask | show | jobs
by DaiPlusPlus 1990 days ago
* malloc would accept a typename argument T and return T*

* calloc would a;so accept a typename T and count and return T[count]*

* Generic containers could be implemented as something closer to C++ templates (or preprocessor macros on steroids, like T4, as you suggest).

1 comments

There is no typename in C.