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

Allow lifting of n-ary functions #9

Open
1 of 2 tasks
milibopp opened this issue Jan 18, 2015 · 3 comments
Open
1 of 2 tasks

Allow lifting of n-ary functions #9

milibopp opened this issue Jan 18, 2015 · 3 comments

Comments

@milibopp
Copy link
Owner

There is only lift2 right now. It is probably possible to do this generically, so that there is one generic function lift deprecating lift2. This will likely involve using a recursive macro to implement it for a finite but arbitrary number of arguments. Quickcheck has done something similar.

  • Generic lifting for a few low arities (say, up to 4)
  • Use a completely arbitrary arity
@milibopp milibopp added this to the 0.1.0 milestone Jan 21, 2015
@milibopp
Copy link
Owner Author

#22 resolves the most common practical concerns, but is far from a general solution. However, it appears that Rust's type system can not accomodate such a solution, until it gets variadic generics.

@milibopp milibopp removed this from the 0.1.0 milestone Jan 26, 2015
@milibopp
Copy link
Owner Author

There was an idea on Reddit

@milibopp
Copy link
Owner Author

milibopp commented May 5, 2015

The situation here has not changed after the internals redesign.

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

No branches or pull requests

1 participant