10

The ScalaSignature is an annotation. It contains meta informations.

And then parser is provided. but scala-library.jar is not contains the parser. It seem like secret API.

But I know a few libraries using ScalaSignature.

By the way, I could not found formal specification of ScalaSignature. I worry that the specification of ScalaSignature may change by a Scala version change. Also I think there are some other risks using ScalaSignature because specification doesn't exists.

Further, Scala2.10 will provide a new reflection API. I think the reason for using ScalaSignature will decrease, when 2.10 is released.

Thus, should one use the ScalaSignature?

kiritsuku
  • 52,967
  • 18
  • 114
  • 136
Kenji Yoshida
  • 3,108
  • 24
  • 39

1 Answers1

8

Reflection API in Scala 2.10 provides an officially supported abstraction over Java reflection + Scala signatures. If ScalaSignature format changes, reflection will change accordingly.

Eugene Burmako
  • 13,028
  • 1
  • 46
  • 59