Skip to content

Generalize Expr.AsFunction to any number of parameters #5602

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

nicolasstucki
Copy link
Contributor

This does not include FunctionXXL

@nicolasstucki nicolasstucki self-assigned this Dec 12, 2018
@nicolasstucki nicolasstucki force-pushed the generalize-function-applied-to branch from 5ec5feb to cb3141d Compare December 12, 2018 14:38
// FIXME: Having the List in the code above trigers an assertion error while testing dotty.tools.dotc.reporting.ErrorMessagesTests.i3187
// This test does redefine `scala.collection`. Further investigation is needed.
/** An Expr representing `'{(~f).apply(~x1, ..., ~xn)}` but it is beta-reduced when the closure is known */
final class FunctionAppliedTo[+R](val f: Expr[_], val args: Array[Expr[_]]) extends Expr[R] {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Later, after #5297, we will be able to remove this class altogether as the function application will not be delayed.

@nicolasstucki
Copy link
Contributor Author

Included in #5603

@liufengyun liufengyun deleted the generalize-function-applied-to branch December 13, 2018 10:33
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

Successfully merging this pull request may close these issues.

2 participants