Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`_Generic` is more akin to type switches, and generics or templates generally refer to an ability to instantiate multiple functions on demand.


An implementation detail how generics are exposed in C.


That is not an implementation detail of the same sort of feature. It is just a totally different feature.

OK not totally different but different enough: you cannot just write a fuction with a type parameter and expect it to work with multiple different types in C as you can in C++.


How the sausage gets made is not much of a problem for many.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: