Oh, wow. I was just asking about the spec; didn't know this stuff already worked. Rakudos to the team! :)
On Wed, Mar 10, 2010 at 9:18 AM, Carl Mäsak <cma...@gmail.com> wrote: > Mark (>): >> Does the unpacking participate in dispatch? If a Hash comes in as $t >> with no 'left' key, will it fail to match? > > Yes. > > $ perl6 -e 'sub foo(%h($left)) { say $left }; foo({ left => "OH HAI" })' > OH HAI > > $ perl6 -e 'sub foo(%h($left)) {}; foo({ no => "left key" })' > Not enough positional parameters passed; got 0 but expected 1 > [...] > > The error message is perhaps slightly LTA, but at least Rakudo > (correctly) fails to match. > > // Carl > -- Mark J. Reed <markjr...@gmail.com>