Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: dear Mom -

by tobyink (Canon)
on Jul 27, 2020 at 13:01 UTC ( [id://11119862]=note: print w/replies, xml ) Need Help??


in reply to dear Mom -

Cool, glad someone likes it. It's basically a way to get the power of Moo with the simplicity of Class::Tiny.

It's bigger than either Moo or Class::Tiny though because it uses Moo and a bunch of other stuff in the backend.

# Simple usage package Widget { use Mom q{ name sku price size }; } # Complex usage package Widget { use Mom q{ name :required :type(NonEmptyStr) sku :required :type(NonEmptySimpleStr) price :default(0) :type(Num) size :required :enum(xs,s,m,l,xl) }; }

Replies are listed 'Best First'.
Re^2: dear Mom -
by perlfan (Vicar) on Jul 27, 2020 at 15:49 UTC
    Thank you for creating and sharing it. Regarding size, that has not been the main barrier to me using Moo. It's been the interface. I am just one data point, but this shows me that we can do much better in minimizing the declarative boiler plate and getting it out of the way of our coding in the same way Perl gets out of the way of what we're using it to achieve.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found