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

look at defaults in eta-expansion #5191

Closed
scabug opened this issue Nov 15, 2011 · 2 comments
Closed

look at defaults in eta-expansion #5191

scabug opened this issue Nov 15, 2011 · 2 comments

Comments

@scabug
Copy link

scabug commented Nov 15, 2011

investigate on

def dup(s: String, n: Int = 2) = s*n
dup("fish")   // "fishfish"
List("fish","cow").map(dup)  // Error
@scabug
Copy link
Author

scabug commented Nov 15, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5191?orig=1
Reporter: @lrytz

@scabug
Copy link
Author

scabug commented Mar 25, 2013

@retronym said:
I don't think this is worth the additional spec complexity; List("fish","cow").map(dup(_)) isn't much longer.

Lukas, feel free to reopen if you feel strongly otherwise.

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

2 participants