A Briefer Syntax for Using Concepts

"Nordlöw" via Digitalmars-d digitalmars-d at puremagic.com
Wed May 7 08:57:46 PDT 2014


> void foo(T)(InputRange!T range);

Clever. Shouldn't we all, including Phobos, use this shorter 
syntax instead?

Further, we could always do

     alias R = InputRange!T;

or

     alias R = typeof(range);

inside the body if needed.


More information about the Digitalmars-d mailing list