Yes, it certainly is not a lie. In Naming Type System, adaptTo extends duck.
But, people who you want to appeal it will think that all of duck-typings each person imagine possible. As a result, by knowing duck supports only Adapter-Pattern, they will be lied to and angry. It will negatively affect D. D also has duck-typing by template, so naming adaptTo duck will be making ambiguous situations. (Like Tuple and TypeTuple) Please reconsider it. Kenji. 2010/10/17 Andrei Alexandrescu <[email protected]>: > On 10/16/2010 02:54 PM, kenji hara wrote: >> >> Adapter-Pattern! I'd have forgotten the name. >> It is NOT equals to duck-typing. > > It's a subset of duck typing. I don't think calling a function that supports > a limited form of duck typing "duck" is a lie. > > Andrei > >
