duck!

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Oct 16 06:54:50 PDT 2010


On 10/16/10 1:35 CDT, Leandro Lucarella wrote:
> Kagamin, el 15 de octubre a las 17:16 me escribiste:
>> Andrei Alexandrescu Wrote:
>>
>>> I was talking to Walter about Kenji's adaptTo. We both think it's a very
>>> powerful enabler, but adaptTo is a bland name. After discussing a few
>>> marketing strategies, I proposed "duck". It's short, simple, and evokes
>>> "duck typing".
>>
>> 1. adaptTo helped me to understand what it does, while duck!Drawable doesn't.
>
> I agree, just "adapt" might be an option, it even has a precedence of
> something similar in Python (even when the PEP[1] was rejected, PEAK has
> an implementation[2]). But "duck" is really cryptic (as symbol names
> invented by Andrei usually are :).

Walter recognized it instantly, as I think most should. Isn't "duck 
typing" really spread out there?

Andrei


More information about the Digitalmars-d mailing list