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
Deprecate automatic () insertion #8035
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8035?orig=1 |
@retronym said: |
@SethTisue said: |
@soc said: |
@Atry said: import scala.util.control.TailCalls._
def gotWarning: TailRec[Unit] = done()
def noWarning: TailRec[Unit] = done(()) I don't know why scalac warning on |
@soc said: |
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
Get thee to a nullary, go. Farewell -Xfuture. Ref scala/bug#8035
While trying to bridge the gap between tuples and parameter lists, the compiler is a bit too eager to insert 0-Tuples () into argument lists.
This is pretty much never what a developer wants (and we couldn't come up with a single example where the () insertion is “a good thing” in three months), but has been the cause of a lot of embarrassing behavior:
Mailing list threads:
https://groups.google.com/forum/#!topic/scala-internals/4RMEZGObPm4
https://groups.google.com/forum/#!topic/scala-user/4yggJc38tIg/discussion
https://groups.google.com/forum/#!topic/scala-debate/zwG8o2YzCWs
The text was updated successfully, but these errors were encountered: