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

Re^5: Some thoughts on Moose Attributes

by BrowserUk (Patriarch)
on May 02, 2011 at 02:35 UTC ( [id://902424]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Some thoughts on Moose Attributes
in thread Some thoughts on Moose Attributes

So, you didn't comment on the second of my ponderables: can Moose live with direct access to state as hash elements of $self?

Hm. The simple answer is: I don't know.

The more thoughtful answer is, if I am not going to use the generated accessors; and I see no use for the introspection, what would I get from Moose?

It cannot generate my non-accessor methods for me, so nothing to gain there.

And one of Moose' strongest features is that it will inter-operate, subclass and superclass, bog standard blessed ref classes. So, I don't need to use Moose in order to benefit from existing moose-based modules.

At that point, your ponderable becomes a moot issue. (For me.)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^5: Some thoughts on Moose Attributes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-20 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found