问题
Is there a good place to get a thorough tutorial of Scala 2.10's reflection API? I see lots of blog posts written over the course of the last two years, but many of the details of these posts are already out of date.
Now that 2.10 is publicly available, is there any document that will walk me through how reflection works?
回答1:
Check out the official reflection guide at http://docs.scala-lang.org/overviews/reflection/overview.html. Thanks a lot to Heather Miller who took time to assemble it!
Other sources available are: 1) the slides from one of my talks, 2) Daniel Sobral's blog posts, 3) Scaladoc links on the stub pages accessible via the URL provided above, 4) and Stack Overflow answers. I might've missed something here, please let me know if that's the case.
回答2:
There are these slides from Eugene Burmako, the principal behind reflection and macros in 2.10
回答3:
There is some links that come up when you search for it in the Scala Documentation site, but not much.
http://docs.scala-lang.org/search.html?q=reflection
来源:https://stackoverflow.com/questions/14322819/is-there-a-tutorial-on-scala-2-10s-reflection-api-yet