Comment #0 by bearophile_hugs — 2014-03-27T14:46:30Z
In documentation produced by dmd with the -D switch, I suggest to generate one pop-up tooltip for every "auto" keyword present in the html page, that shows what's the type that gets inferred by the auto. This helps keep the documentation short but fully clear.
Even better is to generate a tooltip everywhere a type is inferred:
static foo() { return 0; }
Here foo() has an inferred return type despite there is no "auto".
The inferred return type is useful for lambdas too.
You can see similar tooltips in the source code in pages like:
http://tomasp.net/blog/types-and-math.aspx/index.html
Comment #1 by robert.schadek — 2024-12-13T18:18:55Z