Re:Cdecl: C Gibberish ↔ English
by kevin_thibedeau on Saturday April 23, 2022 @01:07PM
(#31136078)
Even C isn't consistent about this:
int * a, b; // "Property" of the variable
typedef int * pint;
pint x, y; // Property of the type
This has created so much bad legacy code where pointer typedefs are created for no good reason.
What fixes this issue is that, like most other languages which are not C, Go understands that "is a pointer" is a property of the type, not the name / value.
So even if it used C-style declaration, Go would say
or, using a more verbose syntax