Simplified signatures in generated documentation

Dominikus Dittes Scherkl via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 20 00:46:16 PDT 2014


On Wednesday, 20 August 2014 at 07:04:50 UTC, Jacob Carlborg 
wrote:
> * Remove template constraints. I think, at least with 
> std.algorithm, it's mostly obvious what to pass and I rarely 
> need to look at the constraints

BTW aren't they a bit over-complicated?

(args.length == 0 || (args.length > 0 && !is(Unqual!(A[0]) : 
bool)))

isn't length unsigned?
so in the or-part args.length > 0 is obviously true and 
superflouos.

(args.length == 0 || !is(Unqual!(A[0]) : bool))

is at least a little more readable...


More information about the Digitalmars-d mailing list