Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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).


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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-04-22 06:56 GMT
Find Nodes?
    Voting Booth?