in reply to Why Moose uses this syntax??!!

$ perl -wE 'my $m = {is => "rw", isa => "Array", default => ()}' Odd number of elements in anonymous hash at -e line 1.

Replies are listed 'Best First'.
Re^2: Why Moose uses this syntax??!!
by ikegami (Patriarch) on Dec 28, 2014 at 10:03 UTC
    That's because default => () is incorrect. This doesn't answer the question. If anything, that shows an advantage of using a hash ("free" parameter count check).
      "because it's not correct" is a reasonable answer, I'd say :) Other then that, I don't know Moose and the OP doesn't know it either :)