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