Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active Apr 2, 2022
Embed
What would you like to do?
// Should I use this?
struct Core {
let dataProcessor: any Computable
}
// or should I inject dependencies using generics?
struct Core2<T: Computable> {
let dataProcessor: T
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment