Static overused? (was Re: Inner classes - More expressiveness needed)
Matti Niemenmaa
see_signature at for.real.address
Thu Oct 25 13:03:38 PDT 2007
Henning Hasemann wrote:
>> As far as I can come up with, "out", "scope", and "void" have two
>> distinct meanings, and the rest have one.
>
> 'import' has 2: 'import foo', 'import("foo")'
> 'mixin' has at least 2: 'mixin Foo!()', 'mixin("foo")'
> 'this' has at least 2: 'this() { }', 'this.foo'
> 'alias' has at least 2: 'alias myint int;', 'tempalte Templ(alias T){}'
Gregor grouped static's 7 meanings into 2. I did the same with 'import' and
'mixin' in the above. I'd say you're right about 'this' at least, and I never
understood template alias parameters so you're probably right about that one,
too. :-)
> (Which has it good sides too when it comes to backwards compatibility,
> but I feel it should be more important to choose expressive keywords
> then retaining backwards compatibility especially in the 2.x branch I
> think it would be a good idea to reconsider keyword choices as
> backwards compatibility is not an issue there.)
Agreed.
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list