Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

More generics #11

Open
Joannis opened this issue Jul 12, 2017 · 0 comments
Open

More generics #11

Joannis opened this issue Jul 12, 2017 · 0 comments

Comments

@Joannis
Copy link
Member

Joannis commented Jul 12, 2017

Currently, many functions require an array or other specific collection type where it's not necessary.

An example: public static func validateDatabaseIntegrity(problemLimit limit: Int = Int.max, types: [_Model.Type]) throws -> [DatabaseProblem] where types could easily be a Set, AnySequence or any other sequence of _Model.Type.

In addition to this, _Model.Type... might make the API more easy, too

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

No branches or pull requests

1 participant