News for hackers. Stuff that matters.
Re:Generics in C without void* or macros – enabled by psychec by bitcharmer on Monday September 09, 2019 @10:02AM (#20918236)
I'm not an expert C developer but can see some semantic benefits of typedefing a pointer.

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 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.