-
Notifications
You must be signed in to change notification settings - Fork 21
Extends syntax inconsistent #902
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
Imported From: https://issues.scala-lang.org/browse/SI-902?orig=1 |
Geoffrey Alan Washburn (washburn) said: |
Lauri Alanko (lealanko) said: However, I'd still say that, in a reference document linked to from the Scala site's front page, it is a bad idea to describe a syntax that is not supported by the current release version, and that is not explained in detail anywhere in the specification. If the May 5th version of the spec is a "work in progress", not even supposed to be a coherent text, or consistent with any release of the implementation, then I think it should be listed under "nightly builds" or the like. Yes, granted, it does say "draft", but it also says "version 2.7", strongly indicating that it's somehow related to the language supported by the 2.7.x series of the implementation. |
@odersky said: |
In the syntax summary of the Scala Specification (as of May 5th, 2008), the syntax for subclassing is given as:
However, the alternative
<:
token doesn't seem to be supported by the compiler. Moreover, theExtends
non-terminal is not mentioned elsewhere in the specification, and in 5.3 we haveHence the syntax summary seems to be erroneous.
The text was updated successfully, but these errors were encountered: