Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why Moose uses syntax like this:
has 'friends' => ( is => 'rw', isa => 'Array', default => () );instead of using this syntax
has 'friends' => [ is => 'rw', isa => 'Array', default => () ];I think the latter syntax does make more sense
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Moose syntax
by choroba (Cardinal) on Dec 28, 2014 at 11:07 UTC | |
|
Re: Perl Moose syntax
by Anonymous Monk on Dec 28, 2014 at 03:12 UTC | |
by Anonymous Monk on Dec 28, 2014 at 03:17 UTC | |
by Anonymous Monk on Dec 28, 2014 at 03:23 UTC | |
by Anonymous Monk on Dec 28, 2014 at 05:44 UTC | |
by Anonymous Monk on Dec 28, 2014 at 15:03 UTC | |
| |
|
Re: Perl Moose syntax
by ambrus (Abbot) on Jan 16, 2015 at 08:45 UTC |