scala: toString for synthetic classes and functions
<p>I think the biggest drawback of programming in scala is that, due to large amount code being part of synthetic/anonymous classes, stack traces and default 'toString' logs are often close to useless.</p>

<p>Is there a good reason/obstacle for the compiler generating more helpful class names/toString methods? I feel like methods reified to functions and functions assigned to named vals at least are good candidates to print the name of the method/val instead of 'function'. Would be also great to have the class names of lambdas show the name of the method they were defined in, but again something like '$$lambda' would be an improvement.</p>

<p>Probably can be done with macros - did anyone already do it, or is it a good candidate to delve into scala macros?</p>