Steven Schveighoffer wrote:

I insist that auto is a storage qualifier

what is the rationale to have `auto` as storage qualifier? except of keeping it in line with the ancient C feature (and most C programmers don't even know what `auto` does in C).

i bet that most people are sure that `auto` in D is a type placeholder. it works like type placeholder, it looks like type placeholder, why don't make it a type placeholder?

ok, i can see *one* place where it won't be consistent: `foo (auto ref Type v)`. which can be left as a logical exception ('cmon, `enum a = 20;`) is not declaring an enum too, it is used to declare "inline constant".

also:

        auto int n = 42;

yay: "Error: variable n storage class 'auto' has no effect if type is not inferred, 
did you mean 'scope'?"

even D compiler knows that `auto` is used as *type* *placeholder*. 'cmon, let's promote it to actual type placeholder!

Reply via email to