-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Missing unused warnings for lambdas parameters #20951
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
Comments
@mbovel what should be the flag to be passed to the Scala 3 compiler, when the warning should be logged? |
I know I encountered this while enabling lints on the scala 2 code base. Sorry I don't have a link, but I'll add it if I find it. I think my conclusion was, "naming is hard, avoid it if you can."
Since naming is a cost (like anything else), penalize it! "If you name it, use it!" If Scala had a mascot, Scala Center could commission a poster showing the mascot with that slogan. Like Smokey Bear saying only you can prevent forest fires. |
Lambda parameters will warn even for trivial bodies. |
In Scala 2.13:
In Scala 3, no warning.
Might be due to #17223.
The text was updated successfully, but these errors were encountered: