3 ms·
`_Generic` is more akin to type switches, and generics or templates generally refer to an ability to instantiate multiple functions on demand.
by lifthrasiir 3y ago
`_Generic` is more akin to type switches, and generics or templates generally refer to an ability to instantiate multiple functions on demand.
- grenoire 3y agoHow the sausage gets made is not much of a problem for many.
- pjmlp 3y agoAn implementation detail how generics are exposed in C.
- quietbritishjim 3y agoThat 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++.