RFC on range design for D2
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Sep 9 03:52:03 PDT 2008
Alix Pexton wrote:
> Andrei Alexandrescu wrote:
>> (why the heck don't they call it structural typing...)
>> Andrei
>
> If it were the norm to call it "structural typing" and someone asked why
> it was called
> so, the one being asked would likely have to resort to diagrams and
> gesticulation in
> order to adequately convey the reasoning.
>
> With "duck typing" a simple and widespread saying* is all that is required.
>
> A...
>
> * "If it walks like a duck and it quacks like a duck, then it's a duck!"
Yeah, I know. It's a good point. Yet I'm somehow weary of cultural
references in formalisms.
Andrei
More information about the Digitalmars-d-announce
mailing list