in reply to Re: Why Moose uses this syntax??!!
in thread Why Moose uses this syntax??!!
Not at compile time.
>perl -c -we"my %h = 'a';" -e syntax OK
How could it be?
>perl -c -we"my %h = f();" -e syntax OK
I disagree with the advice you quoted. f({...}) simply forces extra complexity in the caller just to avoid doing croak if @_ % 2; (which you don't really need anyway).
|
|---|