alias A = B; syntax

Chris Nicholson-Sauls ibisbasenji at gmail.com
Wed Oct 17 09:09:33 PDT 2012


I would generally be pretty 'meh' on an enhancement like this, if 
not for the umpteen times I've aliased rather complex (read: 
long) types/template-instances and found myself thinking it would 
be nice for the new name to be at the (visually grep'able) 
beginning of the declaration.

Consider simple example:

alias pipe!( readText, splitLines, map!( e => e.splitter( ',' ) 
), array ) readRows;

alias readRows = pipe!( readText, splitLines, map!( e => 
e.splitter( ',' ) ), array );

So ultimately I'm happy to see the change, even if it isn't high 
on the priority list imho.

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list