scala / scala3

The Scala 3 compiler, also known as Dotty.
https://dotty.epfl.ch
Apache License 2.0
5.88k stars 1.06k forks source link

Update default argument values in Scaladoc #13424

Open pikinier20 opened 3 years ago

bjornregnell commented 3 years ago

I just found this when considering adding a feature request on showing default arguments in scaladoc. Is this issue related/duplicate to that? ("No description provided"...)

manojo commented 2 years ago

Also curious about this issue. If I understand correctly, one would need to augment the Parameter class with an extra default argument field, and propagate the change to the renderer.

The challenge would be that a parameter is created from a ValDef, where the right-hand side is any arbitrary Term. I don't know if there is a way to pretty-print an arbitrary term, nor whether it is a good idea (e.g. if it leaks some implementation detail). Are these relevant questions?

Dedelweiss commented 1 year ago

Hello @pikinier20, is it possible to have more detail about this issue and if this is still relevant with all the changes that have happened to scaladoc ?