-
Notifications
You must be signed in to change notification settings - Fork 76
Added macro for passing all arguments of a method as implicit parameter #14
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
Conversation
Looks cool... Might want to add another assert in the unit test assert(args.value(1).size == 2 |
Fascinating. Any chance you could get it working scala-2.10? You probably just need to swap out I also would like a test case that includes a constructor as the nearest-enclosing-method, just to make sure it behaves in that scenario |
Only slightly related, but it would be cool to have an implicit for "everything in scope" rather than just the nearest-enclosing-method's parameters. It would be huge, and we would have to synthesize fake objects to get around the silly |
Already trying to get it working in scala-2.10. |
I've fixed the 2.10 compatibility, but it's currently not working with a constructor as nearest enclosing method. Still working on this... |
…h Scala 2.11 - Workaround for evaluation of arguments passed to the primary constructor with Scala 2.10 - Added test for implicit parameter lists - Added test for empty parameter lists
I'm probably just missing something, but I haven't found a way to access the constructor parameter with Scala 2.10.
|
I'm not sure that it's a good idea to pass an empty list if |
Ok, found a way to access the constructor parameters in 2.10. |
Looks good, thanks! |
No description provided.