Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant