Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re^4: Perl - Is it an OO Language

by Anonymous Monk
on Aug 26, 2002 at 22:42 UTC ( [id://193025]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl - Is it an OO Language
in thread Perl - Is it an OO Language

It isn't weak, it's flexible. It's that simple

And C isn't a weak OO language, it's flexible! You have the freedom to build any OO framework you like with C. I'll leave you with a quote from TheDamian's book (page 296):

Encapsulation is one of the cornerstones of object orientation, but it's the area in which Perl's support for object-oriented programming is the weakest. ..... Fortunately, Perl's flexibility can be turned against itself to provide a means of building objects that respect the encapsulation imposed by their classes.

And this node for a discussion of (and solution for in followup) how Perl's simple inheritance breaks encapsulation of the superclass. I justify my original comment on the basis that if you need to jump through hoops to get some feature (in this case encapsulation), support for that feature is 'weak'.

Replies are listed 'Best First'.
Re^6: Perl - Is it an OO Language
by Aristotle (Chancellor) on Aug 26, 2002 at 22:49 UTC
    C doesn't have a builtin polymorphism mechanism.

    Makeshifts last the longest.

      Thank you, I believe you just inadvertently illustrated my point.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://193025]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-18 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found