Why the @ in @safe? & UDAs
Daniel Kozák
kozzi11 at gmail.com
Thu Nov 7 08:03:57 PST 2013
> Then should public and private be @public and @private in order to be
> consistent? Then we'd be inconsistent with C++, Java, C# etc. which
> would make
> it that much harder for folks to learn D. Would you want @static and
> @const?
>
> I don't think that you can be 100% consistent. If nothing else, as soon
> as you
> make one thing consistent, it often ends up being inconsistent with
> something
> else. And sometimes consistency costs us. For instance, this is perfectly
> legal
I has thinking about it actually and come to same conclusion. You are
right, be 100% consistent in this case would be worst than actual
situation.
More information about the Digitalmars-d
mailing list