Skip to content

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

Merged
merged 2 commits into from
Oct 22, 2015
Merged

PackBuilder Fixup #1205

merged 2 commits into from
Oct 22, 2015

Conversation

dahlbyk
Copy link
Member

@dahlbyk dahlbyk commented Oct 21, 2015

A few adjustments to #1183 that I arrived too late to suggest as feedback.

/cc @AMSadek @whoisj @nulltoken @ethomson @carlosmn @kevin-david

@whoisj
Copy link

whoisj commented Oct 21, 2015

Looks good.

Would still like to see PackBuilderOptions become a struct instead of a class.

@nulltoken
Copy link
Member

@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.

@dahlbyk
Copy link
Member Author

dahlbyk commented Oct 21, 2015

I added the fluency in imitation of TreeDefinition.Add(...).

Would still like to see PackBuilderOptions become a struct instead of a class.

It seems that most of our Options types are currently classes - should we prefer consistency over case-by-case optimization?

@AMSadek
Copy link
Contributor

AMSadek commented Oct 22, 2015

@whoisj

Would still like to see PackBuilderOptions become a struct instead of a class.

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! ...
I'm not sure how useful the chaining support you added will be, however I don't object to it.
Other than that, the changes look fine to me :)

@nulltoken
Copy link
Member

I added the fluency in imitation of TreeDefinition.Add(...).

@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?

@dahlbyk
Copy link
Member Author

dahlbyk commented Oct 22, 2015

Dropped fluency (still available at 34779a2 until GitHub gc).

@nulltoken
Copy link
Member

Dropped fluency (still available at 34779a2 until GitHub gc).

Any chance you could push it to a branch?

nulltoken added a commit that referenced this pull request Oct 22, 2015
@nulltoken nulltoken merged commit 78cad1d into vNext Oct 22, 2015
@nulltoken nulltoken deleted the packbuilder-fixup branch October 22, 2015 17:54
@nulltoken
Copy link
Member

@dahlbyk ❤️

@nulltoken nulltoken added this to the v0.22 milestone Oct 22, 2015
@dahlbyk dahlbyk mentioned this pull request Oct 22, 2015
@dahlbyk
Copy link
Member Author

dahlbyk commented Oct 22, 2015

Any chance you could push it to a branch?

Done and PR'd

@AMSadek
Copy link
Contributor

AMSadek commented Oct 26, 2015

@dahlbyk thanks for the fixes :)!

@nulltoken

@AMSadek Do you still need to perform this kind of splitting?

Yup, kindly have a look on my recent PR #1216 :)

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.

4 participants