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

Get rid of the struct wrappers around list types. #284

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Aug 1, 2022

...to make this consistent with structs and capabilities.

This introduces a helper script (./internal/gen/gen.go) to generate a
lot of the boilerplate methods, since not embedding means that we don't
just inherit these anymore.

In the future, it may make sense to move more of the boilerplate into
this script; there's a fair chunk of it beyond what this patch added.

...to make this consistent with structs and capabilities.

This introduces a helper script (./internal/gen/gen.go) to generate a
lot of the boilerplate methods, since not embedding means that we don't
just inherit these anymore.

In the future, it may make sense to move more of the boilerplate into
this script; there's a fair chunk of it beyond what this patch added.
@zenhack zenhack requested a review from lthibault August 1, 2022 23:44
@lthibault lthibault merged commit 02af063 into capnproto:main Aug 2, 2022
@zenhack zenhack deleted the kill-list-struct-wrappers branch August 2, 2022 15:53
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.

2 participants