Just a thought...

F i L witte2008 at gmail.com
Tue Apr 17 08:41:52 PDT 2012


Was just looking through some code and realized there's a lot of 
this:

   template isSomething(T) {
     enum isSomething = is( ... );
   }

I remember a discussion a little while ago about an alternative 
alias syntax:

   alias <name> = <type>;

Which I hope is still in the works, but I thought something 
similar _might_ be helpful for templates too. So the template 
above could be written:

   template isSomething(T) = is( ... );

Which looks a bit cleaner.


Just a thought.


More information about the Digitalmars-d mailing list