Python 1.6 The balanced language
Manuel Gutierrez Algaba
thor at localhost.localdomain
Fri Sep 1 12:18:00 EDT 2000
On 31 Aug 2000 Neel Krishnaswami <neelk at brick.cswv.com> wrote:
>
>No, the distinguishing features of OO are that a) subtyping exists,
>and b) the types of objects are used to do dynamic dispatch.
If you think about it. python is rather "functional" (typeless)
in its mood ( perhaps because it followed the steps of tcl and perl),
and the way it uses to produce "polymorphism" is different to java,
python uses optional params while java uses different functions,
real polymorphism.
def a(b,c=None):
if c: print b,c
else: print b
while
void a(stupidtype b) {
system.out.println(b);
}
void a(stupidtype b, stupidtype c) {
systema.out.println(b,c);
}
Both systems has advantages and disadvantages.
>Mutable
>state is not necessary -- in both Dylan and Ocaml, it's common to
>write code in an "object-functional" style, with lots of objects but
>no mutation.
I don't understand this.
[snip heavy machinery for me]
--
MGA
More information about the Python-list
mailing list