-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Step builder? #1000
Comments
The Step Builder pattern is interesting but brings its own constraints. You have to set properties in a particular order, or have a combinatorial explosion of interfaces. Even then, the number of step interfaces increases with the number of properties. Having said that, it's entirely possible to have the same
The The final step, which produces the built object, has to work slightly differently, since the I think it would be reasonable for us to document this. |
Fixes #1000. RELNOTES=n/a PiperOrigin-RevId: 361653279
Thank you very much. |
Just curious why the step builder is not used in order to ensure all fields are set at compile time rather than runtime.
Reference:
https://medium.com/@castigliego/step-builder-pattern-3bcac4eaf9e8
The text was updated successfully, but these errors were encountered: