in reply to Re: Moo different parameters for constructor
in thread Moo different parameters for constructor

Thanks for the tip. Also, How can we validate constructor args?
  • Comment on Re^2: Moo different parameters for constructor

Replies are listed 'Best First'.
Re^3: Moo different parameters for constructor
by haukex (Archbishop) on May 16, 2019 at 15:36 UTC
    Also, How can we validate constructor args?

    There's several different ways to do this. The code I showed already uses Type-Tiny, see its documentation on how to use it for tighter constraints, and see the documentation for isa in Moo. I also mentioned MooX::StrictConstructor above.