Re:Cdecl – Turns English phrases into C declarations
by ambrop7 on Tuesday January 08, 2019 @12:31PM
(#18857419)
I did say "original C declaration syntax forms needs to be deprecated and only the newly invented syntax forms should be used". So the new invented syntax alone is complete (you can express anything with &, (args)->ret and [count]type).
[ Parent
| on HN ]
Re:Cdecl – Turns English phrases into C declarations
by watergatorman on Tuesday January 08, 2019 @03:27PM
(#18859319)
Ok, I got it now. Thanks. My faulty understanding.
I believe you have a clean, readable syntax for C declarations.
The Go Programming Language's declaration syntax is very similiar, except that "star" is retained and acts just as your "&"
I don't have a complete list, but have been looking at classifying programming languages into one of 2 categories:
Category 1 declaration syntax: Type identifier ;
or
Category 2 declaration syntax: identifier Type ; with perhaps a colon or other punctuation between the identifier and Type.