Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: A few Perl OOP questions. (disparaging)

by Zaxo (Archbishop)
on Oct 24, 2003 at 06:30 UTC ( [id://301805]=note: print w/replies, xml ) Need Help??


in reply to Re^4: A few Perl OOP questions. (disparaging)
in thread A few Perl OOP questions.

tye, the original query was about OO perl. I mentioned that the idiom gets criticised. In the followup, I explained why in terms of OO practice. Allowing object methods to set class metadata is a bad thing because it allows things which should not interact to change each other's behavior.

I see no FUD in my statement of that: "class methods and instance methods should be distinct and disjoint". There is no fear there, and it seem a quite certain and undoubting statement. Is that what you really object to?

What do you mean by '.. no "do this instead"'? I gave two distinct strategies for avoiding the construct.

Are you trying to get me to suggest some new perl syntax to somehow make things alright? I won't do that. The syntax is not the issue. If you have use for ref($class) || $class, be my guest.

BTW, why wouldn't I name a constructor new? I usually do unless I call it frobozz or clone or connect.

Throughout this thread you've been putting words in my mouth. Please stop that.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found