Typing system vs. Java

Alex Martelli aleaxit at yahoo.com
Sun Aug 5 10:50:40 CEST 2001


"Courageous" <jkraska1 at san.rr.com> wrote in message
news:vblomtomuhmk79gk4u64504njgaj4af0dp at 4ax.com...
>
> >Would you use it often enough to warrant a language change?
>
> Personally, probably not. I'm really only observing that many of
> the requests for "type safe containers" that you see around are
> really on a desire to have uniform containers. It's easy enough
> to create these by hand if your really want them.

I haven't seen many such requests.  Anyway, it's clearly trivial
to subclass UserList, overriding append and __setitem__ to make
sure the items being added satisfy some per-item test (be it
a type-test or something more clever) -- is that what you mean?


Alex






More information about the Python-list mailing list