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

Generate value utility methods interface #293

Open
alicederyn opened this issue Mar 21, 2018 · 1 comment
Open

Generate value utility methods interface #293

alicederyn opened this issue Mar 21, 2018 · 1 comment

Comments

@alicederyn
Copy link
Collaborator

Rather than requiring users type abstract methods for useful value utilities like .toBuilder() or .streamX(), generate an interface they can implement, with defaults so any other subclass is not negatively affected when we add new methods.

@alicederyn
Copy link
Collaborator Author

alicederyn commented Apr 26, 2018

This one seems weightier than I'd anticipated, on reflection: the user type won't appear fully valid until after we've dropped out the code, and we can't reliably tell whether the missing type is the one we're meant to create, or one we're meant to parse for getters, meaning we need to start doing two-stage generation. See also #11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant