-
Notifications
You must be signed in to change notification settings - Fork 899
PackBuilder Fixup #1205
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
PackBuilder Fixup #1205
Conversation
Looks good. Would still like to see |
@dahlbyk I'm not really sold on the fluent approach. Although it works in this context, I'd be grateful if we could move this to a separate PR and see if globally, from an PI standpoint this is a sustainable approach. (are there other types that could benefit from this? Are there types which semantic make that cumbersome...). Besides this nitpick, I ❤️ your rebound. |
I added the fluency in imitation of
It seems that most of our Options types are currently classes - should we prefer consistency over case-by-case optimization? |
I vote for keeping it as a class. One more thing other than consistency is I don't want to allow default constructor here. So that I don't validate twice if the path has been set or not, and if it exists or not. @dahlbyk Thanks for the feedback! ... |
@dahlbyk Indeed. However, if that makes sense to you, I'd like to ensure that the PackBuilder is stable from the API perspective before moving on with some fluency. In #1183 (comment), @AMSadek was raising an additional need that isn't tackled yet. I'd prefer postpone the chainable method approach for this type until we've defined how the API should handle the split in multiple packs. Deal? @AMSadek Do you still need to perform this kind of splitting? |
565e4d5
to
e9db9e8
Compare
Dropped fluency (still available at 34779a2 until GitHub |
Any chance you could push it to a branch? |
@dahlbyk ❤️ |
Done and PR'd |
A few adjustments to #1183 that I arrived too late to suggest as feedback.
/cc @AMSadek @whoisj @nulltoken @ethomson @carlosmn @kevin-david