terminological obscurity

"Martin v. Löwis" martin at v.loewis.de
Mon May 31 04:21:02 EDT 2004


Arthur wrote:
>>Python's typing isn't all about what type(x) returns.
>>
> 
> And they tell me Python's great for kids ;)

Indeed. Kids have real problems grasping the notion of types
(let alone of type hierarchies); I can tell from experience
that first-year computer science students still have these
problems.

With duck typing, the need to even introduce the notion of
types goes away: you invoke operation on objects, and if the
operation makes sense for the object, it will proceed. At
that point, it is irrelevant what other objects would also
allow the operation to proceed.

After a few months of Java, students are spoiled, and
consider static types and type hierarchies a natural thing,
and consider duck typing as evil.

Regards,
Martin




More information about the Python-list mailing list