Variant confusion
Jonathan M Davis
jmdavisProg at gmx.com
Mon Mar 11 10:51:48 PDT 2013
On Monday, March 11, 2013 17:22:26 Nick Treleaven wrote:
> On 11/03/2013 15:25, Peter Sommerfeld wrote:
> >>> alias Value = Variant;
> >>> alias List = Value[];
> >>> alias Map = List[Value];
> >>
> >> Oh, the new alias syntax is in?
> >
> > Hmmm, I'm new to D, why should I use the old one? And I like
> > the new one more too, it is more descriptive IMHO.
>
> The new syntax is fine, and to be preferred.
Both will work, so it's really a matter of personal preference. Quite a few
people prefer the new syntax though.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list