- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Updating Scala Reference for type parameter annotations
Fri, 2010-01-15, 09:23
The spec [1] still needs to be updated for type parameter annotations [2].
-jason
Syntax:
TypeParamClause ::= ‘[’ VariantTypeParam {‘,’ VariantTypeParam} ‘]’
FunTypeParamClause::= ‘[’ TypeParam {‘,’ TypeParam} ‘]’
VariantTypeParam ::= [‘+’ | ‘’] TypeParam
TypeParam ::= (id | ‘_’) [TypeParamClause] [‘>:’ Type] [‘<:’ Type] {‘<%’ Type} {‘:’ Type}
[1] http://www.scala-lang.org/archives/downloads/distrib/files/nightly/pdfs/ScalaReference.pdf
[2] http://lampsvn.epfl.ch/trac/scala/changeset/16677
-jason
Syntax:
TypeParamClause ::= ‘[’ VariantTypeParam {‘,’ VariantTypeParam} ‘]’
FunTypeParamClause::= ‘[’ TypeParam {‘,’ TypeParam} ‘]’
VariantTypeParam ::= [‘+’ | ‘’] TypeParam
TypeParam ::= (id | ‘_’) [TypeParamClause] [‘>:’ Type] [‘<:’ Type] {‘<%’ Type} {‘:’ Type}
[1] http://www.scala-lang.org/archives/downloads/distrib/files/nightly/pdfs/ScalaReference.pdf
[2] http://lampsvn.epfl.ch/trac/scala/changeset/16677