RFC on range design for D2
Alix Pexton
_a_l_i_x_._p_e_x_t_o_n_ at _g_m_a_i_l_._c_o_m_
Tue Sep 9 03:06:34 PDT 2008
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!"
More information about the Digitalmars-d-announce
mailing list