Re:Generics in C without void* or macros – enabled by psychec
by raxxorrax on Monday September 09, 2019 @10:41AM
(#20918621)
As evidenced by countless examples of somethingPTR-types, it is done regularly. But the main problem is indeed that you hide the pointer.
If you apply qualifiers like const to your type, results might me unexpected.
It might have semantic benefits, but C developers should be trained to ignore all these strange *-symbols anyway.
Is this considered harmful because it hides the fact that you're dealing with a pointer in the first place?