D's greatest mistakes
Steven Schveighoffer
schveiguy at yahoo.com
Mon Nov 29 13:13:17 PST 2010
On Mon, 29 Nov 2010 15:55:10 -0500, Kagamin <spam at here.lot> wrote:
> Steven Schveighoffer Wrote:
>
>> My favorite in recent times is:
>>
>> @tail const(C) tailconst;
>
> Tail const is a type constructor, but I don't think that annotations
> should evolve that far.
What I liked about that is it is orthogonal to the constancy. That is,
with one annotation you get tail-const, tail-immutable, and tail-shared.
It's certainly possible to introduce three new type constructors.
-Steve
More information about the Digitalmars-d
mailing list