-
Notifications
You must be signed in to change notification settings - Fork 21
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
spec still shows antiquated "val" syntax in for comprehensions #4918
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4918?orig=1 |
@soc said: https://github.com/scala/scala/tree/d440c79aa65a43ea79596430b8b1b35887b18d86/ |
@SethTisue said: |
@soc said: |
@SethTisue said: |
@gkossakowski said: |
@soc said: |
The use of `val` keyword in for comprehension has been deprecated since 2.10. Ref scala/bug#4918 Ref scala@cda4650. 1. This improves the deprecation warning 2. This also removes it under -Xsource:2.14
SLS 6.19 has:
'val' here should be optional, or even omitted. It has not been required by the compiler in many years, and standard style (e.g. in Programming in Scala) is to omit it. My understanding is that it might even be disallowed in the future.
The text was updated successfully, but these errors were encountered: