E52D Generic Protocols by lickel · Pull Request #41 · square/FetchRequests · GitHub
[go: up one dir, main page]

Skip to content

Generic Protocols#41

Merged
lickel merged 7 commits intofeature/5.0from
generics
Oct 12, 2022
Merged

Generic Protocols#41
lickel merged 7 commits intofeature/5.0from
generics

Conversation

@lickel
Copy link
Collaborator
@lickel lickel commented Oct 12, 2022

What

Change protocols to be generic

Why

Simplify call sites / readability

How

This adds "primary" associated types for protocols where appropriate.
It then removes where clauses that can be defined via generic signatures.

isa = PBXNativeTarget;
buildConfigurationList = 471C508022C6D0DC007F73E9 /* Build configuration list for PBXNativeTarget "FetchRequests-iOS" */;
buildPhases = (
4736ABDC22CC3A1500253EB6 /* SwiftLint */,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed for simplicity's sake (validate already does this)

@lickel lickel merged commit 43803d7 into feature/5.0 Oct 12, 2022
@lickel lickel deleted the generics branch October 12, 2022 19:08
lickel added a commit that referenced this pull request Oct 12, 2022
* Generics

* Remove some wheres

* More generics

* Collection generics

* Interator.Element

* Minor consistency

* macOS compiles
lickel added a commit that referenced this pull request Oct 12, 2022
* Use Protocol Generics
* Remove a bunch of where clauses
* Remove `Iterator.Element`s
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.

2 participants

0