Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Zaxo (Archbishop)
on Oct 24, 2003 at 06:30 UTC ( #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


Comment on Re^5: A few Perl OOP questions. (disparaging)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2015-07-02 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls