Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using ArrayRef data members in Moose

by stvn (Monsignor)
on Jul 03, 2008 at 02:59 UTC ( [id://695277]=note: print w/replies, xml ) Need Help??


in reply to Using ArrayRef data members in Moose

There is nothing magical about an attribute that isa => ArrayRef any more than an attribute that isa => Str. The former holds an array reference, the later a string. That is all, no other magic is done under the covers to make Perl 5's ugly dereferencing syntax go away.

Simply put, I think you are expecting to see magic where none actually exists.

I'm getting very frustrated with the Moose documentation. There is certainly a ton of documentation, but it skips from bare basics, up to the clouds, with very little in between

Yes, Moose documentation is lacking in places, we know this and are working to improve it, help is always appreciated. I run an audreyt/Pugs-style project too, so if you want a commit-bit just come on over to #moose and ask for one and you can start improving the docs right away.

In the meantime here are some suggestions which you may not have seen, all of which are accessible from the Moose homepage http://moose.perl.org:

-stvn
  • Comment on Re: Using ArrayRef data members in Moose

Replies are listed 'Best First'.
Re^2: Using ArrayRef data members in Moose
by dmorgo (Pilgrim) on Jul 05, 2008 at 03:49 UTC
    OK, thanks. That makes it much more clear (no magic). I was indeed (wrongly) expecting some, but it makes sense now that it's not there. And I will try out the MooseX::AttributeHelpers module(s) someone with a similar first name to yours (and others) suggested.

    As far as docs being lacking, what concerned me was that what I saw in the docs was that yes, you are aware that they are still in progress, but the awareness is centered on awareness that all the super-duper advanced usage is not yet documented. I didn't see any hint of awareness that the medium-level stuff is not documented. Maybe because what is obvious to you does not seem to need documenting, because it's so obvious. This feedback is meant to be constructive, and I appreciate the invitation to participate. Will decide later whether to take you up on it, after seeing how much more understanding I achieve.

    In the meantime I'm very excited to start making better use of Moose through some of the ways that have been pointed out here. Thanks for all you have put into it.

Log In?
Username:
Password:

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

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

    No recent polls found