On Thu, Sep 28, 2017 at 11:52 PM, ToddAndMargo <toddandma...@zoho.com>
wrote:

> I see that SayHash(%H) will take any hash I send it.
>
> Is there a way to make the compiler pissed if a sub does not see
> the specific keys int he hash it wants?  Or do I need to use loop
> with ":exists" and test each key?
>

You should be able to use a destructuring signature (
https://docs.perl6.org/type/Signature#index-entry-destructuring_arguments_%28Signature%29
)

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to