FROGGS explained on #perl6 why the empty BagHash is correct:

< FROGGS> bartolin: the bare a will result in a named argument, where the 
quoted "a" will construct a pair and pass that 
< FROGGS> bartolin: and methods (like .new in this case) happily eat named 
(optional by default) arguments, which is to spec
< bartolin> FROGGS: thanks for explaining
< bartolin> FROGGS: do you think we need a test for that case (a happily eaten 
named argument)? I tend to close the ticket without a further test (but with 
adding this explanation)
< FROGGS> bartolin: yes, this behaviour (aka "interface consistency") shall be 
tested

I'll add a second test to S02-types/baghash.t and close this ticket afterwards.

Reply via email to