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

Resolver using swift generic varaidic argument? #563

Open
alessdiimperio opened this issue May 12, 2024 · 2 comments
Open

Resolver using swift generic varaidic argument? #563

alessdiimperio opened this issue May 12, 2024 · 2 comments

Comments

@alessdiimperio
Copy link

alessdiimperio commented May 12, 2024

Could the resolver protocol use generic variadic arguments to avoid the limit of max arguments as currently exists?

something like so..
func resolve<Service, Args...>(_ serviceType: Service.Type, arguments: Args...) -> Service?

@alessdiimperio alessdiimperio changed the title Resolver init using swift parameter packs? Resolver using swift parameter packs? May 16, 2024
@alessdiimperio alessdiimperio changed the title Resolver using swift parameter packs? Resolver using swift generic varaidic argument? May 16, 2024
@chosa91
Copy link

chosa91 commented May 16, 2024

Just to add a little something, the related Swift EVO proposal: https://github.com/apple/swift-evolution/blob/main/proposals/0393-parameter-packs.md

@alessdiimperio
Copy link
Author

cheers 👍

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

No branches or pull requests

2 participants