in reply to Re: Passing arrayref to Moose attributes
in thread Passing arrayref to Moo attributes
Actually, that code won't work especially well either. (Try calling $maze->my_array.) This is because Moo lacks Moose's native attribute traits feature. (MooX::HandlesVia might help though.)
Also, FYI, Type::Tiny should run measurably faster than MooX::Types::MooseLike::Base, especially for a compound type constraint like ArrayRef[ArrayRef[Str]]. See my benchmarks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing arrayref to Moose attributes
by davido (Cardinal) on Apr 21, 2013 at 04:11 UTC | |
by tobyink (Canon) on Apr 21, 2013 at 08:16 UTC | |
by davido (Cardinal) on Apr 21, 2013 at 14:14 UTC |