In typedef and struct namespaces in C vs C++, one of the comments seems to imply that exposing some struct foo
is preferable to using typedef along the lines of...
typedef struct foo foo;
...and then using foo
instead of struct foo
throughout the API.
Are there any downsides to the latter variant?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…