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

Make Collection a struct #67

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mfcochauxlaberge
Copy link
Owner

@mfcochauxlaberge mfcochauxlaberge commented Oct 22, 2019

A Collection is currently an interface, but does it have to be?

Recently, a Resources type (just a []Resource, see commit e0114e6) was added for some very useful cases and maybe that's what a Collection should be. In that case, remove the Collection interface and rename Resources to Collection.

Most use cases I've met so far requires simply for storing resources, not implementing the same methods on different structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant