Skip to content

Make Collection a struct#67

Draft
mfcochauxlaberge wants to merge 1 commit into
masterfrom
collection-is-struct
Draft

Make Collection a struct#67
mfcochauxlaberge wants to merge 1 commit into
masterfrom
collection-is-struct

Conversation

@mfcochauxlaberge

@mfcochauxlaberge mfcochauxlaberge commented Oct 22, 2019

Copy link
Copy Markdown
Owner

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