dst = src rather than src dst

Alexander Panek alexander.panek at brainsware.org
Wed Sep 5 08:20:24 PDT 2007


Janice Caron wrote:
> Please could D allow the following syntaxes
> 
> alias dst = src;
> typedef dst = src;
> 
> Instead of (or as well as)
> 
> alias src dst;
> typedef src dst;
> 
> I just prefer the destination on the left. Moreover, it would make for 
> greater consistency throughout D. It would match up with assignment 
> operators, module import renaming, and alias template specializations.
> 
> 

alias src [as] dst;
typedef src [as] dst;

Yay.



More information about the Digitalmars-d mailing list