Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Some Moose questions

by stvn (Monsignor)
on Nov 19, 2010 at 22:26 UTC ( #872603=note: print w/ replies, xml ) Need Help??

in reply to Some Moose questions

You are confusing core Moose types with MooseX::Types.

Core Moose types (those created with Moose::Util::TypeConstratints are not the same as MooseX::Types created types. If you are not using MooseX::Types, then you will always want to quote your type names because of exactly the documented issue you quoted. However with MooseX::Types, a subroutine is created for you which you can then use as a bareword so quoting is not needed (however you do need to watch out for automagic stringification using the fat comma).


Comment on Re: Some Moose questions
Replies are listed 'Best First'.
Re^2: Some Moose questions
by tj_thompson (Monk) on Nov 19, 2010 at 22:46 UTC
    Oooh so let's make certain I understand this then. That means the MooseX::Types::Moose is giving you the core Moose types as MooseX::Types types which then means you don't have to worry about quoting those either, right?

      Yes, exactly.

Re^2: Some Moose questions
by tj_thompson (Monk) on Nov 19, 2010 at 22:38 UTC
    Excellent, that makes me feel better about not using quotes then. I had planned to use MooseX::Types. There's just so much Moose documentation that I was getting confused while I waded through it all. I appreciate you taking the time out to help!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-11-29 15:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls