in reply to Re^2: Moose 'clone' Constructorin thread Moose 'clone' Constructor
OK, thanks. I may have been thinking along the lines of:
has x => (..., default => 'abc'); has y => (..., default => sub { [qw{a b c}] }); [download]
where that second line can't be written as:
has y => (..., default => [qw{a b c}]); [download]
But, of course, in the constructor you use the values as is (without needing a coderef):
...->new(x => 'def', y => [qw{d e f}]); [download]
— Ken