Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getters for all fields, even if undocumented #4

Closed
wants to merge 1 commit into from

Conversation

NJAldwin
Copy link
Contributor

@NJAldwin NJAldwin commented May 6, 2018

Some of the fields on some of the packets are missing their :getter
documentation. However, that leaves client code unable to access those
fields on the packets! This changes the generation script to output
getters for all fields, even those which are undocumented.

Some of the fields on some of the packets are missing their `:getter`
documentation.  However, that leaves client code unable to access those
fields on the packets!  This changes the generation script to output
getters for all fields, even those which are undocumented.
@C4K3
Copy link
Owner

C4K3 commented May 6, 2018

The original intention was that not having getter docs defined meant that library consumers should not be able to get that field, but this meaning is mostly lost. In any case, it would make more sense to add an explicit not-accessible declaration or something for the fields that for whatever reason we don't want readable.

On a side-note, it would be nice to drop the Clojure generation and rewrite it all with macros 1.1.

Cherry-picked in as a5fe8b8

@C4K3 C4K3 closed this May 6, 2018
@C4K3
Copy link
Owner

C4K3 commented May 6, 2018

Thanks :)

@NJAldwin NJAldwin deleted the getters-for-all-fields branch May 6, 2018 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants