Fixed array struct types generation #225
Unanswered
pixsperdavid
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the rationale behind generating a separate struct type wrapping each basic array in the C header? E.g. for a struct:
I end up with:
Which feels like a lot of extra noise to add the header, and additionally requires users to access data via the
idx
field which is not particularly ergonomic. Is there a good reason for doing this? I'm generating a header for public consumption (in an SDK) and I'm generally concerned about keeping things simple and readable. I would prefer to just use the arrays directly, eg:Happy to draft a PR to enable the above generation behaviour as an option.
Beta Was this translation helpful? Give feedback.
All reactions