We need better documentation for functions with ranges and templates
Nordlöw via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 17 03:27:09 PST 2015
On Monday, 14 December 2015 at 20:16:25 UTC, H. S. Teoh wrote:
> Imagine, for example, if the docs were to be formatted a little
> better, say something like this:
>
> bool isSameLength(Range1, Range2)
> (Range1 r1, Range2 r2)
> if (isInputRange!Range1 &&
> isInputRange!Range2 &&
> !isInfinite!Range1 &&
> !isInfinite!Range2)
>
> The sig constraint block can be rendered in a different font /
> font size / color / whatever. The CT parameters similarly can
> be visually distinguished from the RT parameters.
That would be a great improvement.
More information about the Digitalmars-d
mailing list