3 ms·
What doesn't work with annotations in Scala? The documentation looks like Scala supports them. http://www.scala-lang.org/node/106 http://www.scala-lang.org/node
by beza1e1 18y ago
What doesn't work with annotations in Scala? The documentation looks like Scala supports them.
http://www.scala-lang.org/node/106 http://www.scala-lang.org/node/106
- jorgeortiz85 18y agoScala doesn't support nested annotations. That will most likely change with 2.8.0 when Scala gets optional and default arguments (nested annotations being a convenient side-effect). That said, most real-world uses of nested annotations in Java can also be configured with XML (I know, yuck). Or you can always write a wrapper interface in Java and use that from Scala, since Scala supports mixed compilation projects. Needing nested annotations in Scala won't be a show-stopper, just inconvenient.