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

Function Builder type inferring is not working #37

Closed
alexsteinerde opened this issue Feb 16, 2020 · 1 comment
Closed

Function Builder type inferring is not working #37

alexsteinerde opened this issue Feb 16, 2020 · 1 comment

Comments

@alexsteinerde
Copy link
Member

Function builders provide a great usability especially for DSLs like Graphiti has build in.
But at the moment Function builders are still in a private-like state in the Swift development process. This can be seen on the underscore in front of the function name(@_functionBuilder).
It also makes some trouble in current Swift versions by not inferring types of the GraphQL schema builder classes.
I created a fork (https://github.com/alexsteinerde/Graphiti) and tried a temporary alternative for function builders: Arrays. It is not the perfect solution and when function builders will be working they should be used again but until then I think this is the best way to go at the moment.

Do you think this is an implementation that could be merged back into this repository to make it easier to discover by other and to make further development possible here?

@paulofaria
Copy link
Member

This is fixed by the last version.

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