RE: Java versus Python

I think reasoned debates on these topics are appropriate for this list, as long as we avoid getting personal.

I'm curious -- does Java have optional and named arguments like Python? I think these are generally a superior way of overloading functions as compared to defining multiple functions with the same name but different parameter types. It took until version 4 of the .NET Framework for these to be added as capabilities that a .NET language can use.

I also think it is worth pointing out that Python generally assumes interfaces rather than data types. So, any type supporting, say, the iterable interface, can be passed to a function that relies on that capability, be it a string, list, tuple, etc. If the object passed does not support the expected interface, a runtime error occurs.

Jamal

__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: