scala/scala — pull request #852 by retronym (2012-07-08 21:24:01+00:00)
Title: Shorter flattened names for nested $anons

[scala-internals thread](https://groups.google.com/d/topic/scala-internals/M852v50Rrik/discussion)

Review by @paulp, @odersky

- Can you suggest additional interesting cases for test/files/run/flatten.scala?
- Do we care that by unnesting the names we make it harder to mentally link the mangled name to its source code? (Incidentally, it would be great if we could teach YourKit to do this for us automatically, to save us either guessing / messing around with javap to figure it out).
- I've done this for `$anonFun`, `$anon`: is there anything else that could have the same treatment.
- The code to walk the `rawowner` chain was a bit fiddly to write and should be scrutinized. I didn't find an existing method on `Symbol` that did what I needed.

References SI-3623.