Python less error-prone than Java
Neil Hodgson
nyamatongwe+thunder at gmail.com
Sun Jun 4 01:08:15 EDT 2006
Alan Morgan wrote:
> Since Java doesn't allow function overloading that clearly can't be
> the way. J2SE 5.0 allows generic classes and functions that operate
> on generic containers. There are some gotchas, but it's not drastically
> more complex than the original int-only java code.
Doesn't Java restrict generics to only operate on reference types so
you can't produce a generic binary search that operates on arrays where
the item type may be int?
Neil
More information about the Python-list
mailing list