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

Initial support for export-hook #22

Merged
merged 6 commits into from
Nov 17, 2015
Merged

Initial support for export-hook #22

merged 6 commits into from
Nov 17, 2015

Conversation

milessabin
Copy link
Collaborator

Once this is in Kittens will build and we'll have a clearer picture of how this is playing out.

@milessabin
Copy link
Collaborator Author

All snapshot dependencies now replaced with releases, so this is ready to merge now.

}

@imports[ConsK]
trait ConsK0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be private[alleycats] sealed trait ConsK0? I don't know if that causes any issues with export hook. But in general I think that if a trait just exists as an implementation detail then we shouldn't expose it for extension/usage by users of the library. If nothing else, making it private makes it obvious to users that they aren't meant to try to use it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment applies to various other places in this PR as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My default position is that all pure code should be public unless there's a compelling reason to the contrary. I don't think there is here, so I wouldn't make this private as a matter of course.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a huge scala infrastructure at work, so fighting binary incompatibilities in library versions is usually my compelling reason to not expose something that is kind of an internal detail :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that there's a discussion to be had here which goes beyond the scope of this PR. Specifically though, I don't see any binary incompatibility issues arising from this trait.

@non
Copy link
Owner

non commented Nov 17, 2015

Side-stepping the larger issues around public/private, this PR seems good to me. I'd be happy to merge it and then change stuff later if/when we decide it is necessary. 👍

@ceedubs
Copy link
Collaborator

ceedubs commented Nov 17, 2015

👍

ceedubs added a commit that referenced this pull request Nov 17, 2015
Initial support for export-hook
@ceedubs ceedubs merged commit 44181bf into non:master Nov 17, 2015
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.

3 participants