Generics in C without void* or macros – enabled by psychec
1–10 of 74 posts
Re: Generics in C without void* or macros – enabled by psychec
#2Re: Generics in C without void* or macros – enabled by psychec
#3You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
Re: Generics in C without void* or macros – enabled by psychec
#4You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
Re: Generics in C without void* or macros – enabled by psychec
#5You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
Is this considered harmful because it hides the fact that you're dealing with a pointer in the first place?
Re: Generics in C without void* or macros – enabled by psychec
#6Re: Generics in C without void* or macros – enabled by psychec
#7You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
It's all semantic sugar anyway.
Re: Generics in C without void* or macros – enabled by psychec
#8You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
While I've great respect for the authors of that fantastic library, I only have this to say about the practice: Jeeesh!
Re: Generics in C without void* or macros – enabled by psychec
#9No void* or macros, but requires a special compiler frontend.
Re: Generics in C without void* or macros – enabled by psychec
#10[1]: http://www.robertgamble.net/2012/01/c11-generic-selections.h...