Re: lies about OOP
"Roy Smith" <roy@panix.co m> wrote in message
news:cpnstr$dca $1@panix2.panix .com...[color=blue]
> I think the real reason Python is a better teaching language for
> teaching OO concepts is because it just gives you the real core of OO:
> inheritence, encapsulation, and association of functions with the data
> they act on.
>
> C++ has so much stuff layed on top of that (type bondage, access
> control, function polymorphism, templates) that it's hard to see the
> forest for the trees. You get C++ jocks who are convinced that that
> stuff is part and parcel of OO, and if it doesn't have (for example),
> private data, it can't be OO.[/color]
+1, QOTW!! :) (esp. "type bondage"!)
"Roy Smith" <roy@panix.co m> wrote in message
news:cpnstr$dca $1@panix2.panix .com...[color=blue]
> I think the real reason Python is a better teaching language for
> teaching OO concepts is because it just gives you the real core of OO:
> inheritence, encapsulation, and association of functions with the data
> they act on.
>
> C++ has so much stuff layed on top of that (type bondage, access
> control, function polymorphism, templates) that it's hard to see the
> forest for the trees. You get C++ jocks who are convinced that that
> stuff is part and parcel of OO, and if it doesn't have (for example),
> private data, it can't be OO.[/color]
+1, QOTW!! :) (esp. "type bondage"!)
Comment