C _Generic doesn’t really allow you to write type generic functions. All the functions still must have a specific type. The only thing _Generic allows is that you may now have only a single interface.
By the way, C23 will have typeof and typeof_unqual.
Remember, this is the language that people say that they prefer because C++ is too complicated.
So great to see Simon blogging
C
_Genericdoesn’t really allow you to write type generic functions. All the functions still must have a specific type. The only thing_Genericallows is that you may now have only a single interface.By the way, C23 will have
typeofandtypeof_unqual.