I don't like auto. (the auto-typing I mean)

Chris Miller chris at dprogramming.com
Fri Mar 10 20:10:30 PST 2006


On Fri, 10 Mar 2006 18:49:46 -0500, Jarrett Billingsley  
<kb3ctd2 at yahoo.com> wrote:

> More and more I see D code strewn with
>
> auto someVariable = someExpression();
>
> I don't like this.  A bit.
>
> Everyone seems to be treating auto like it's the best damn thing to come  
> out
> in the language in a long time.  Now in some cases, it's really obvious  
> what
> the type is, and sometimes saves a lot of typing:
>
> auto w = new ClassName();

Before this auto I had a solution:
    MySuperLongClassName foo = new typeof(foo);
at least things make sense..



More information about the Digitalmars-d mailing list