develooper Front page | perl.perl6.language | Postings from August 2006

named arguments: What's the signature?

Thread Next
From:
Mark Stosberg
Date:
August 29, 2006 17:32
Subject:
named arguments: What's the signature?
Message ID:
ed2ma0$2ag$1@sea.gmane.org

Regarding The S06 description of named arguments:
http://feather.perl6.nl/syn/S06.html#Named_arguments

What I find missing here is documentation of the signature to use
if you want to declare "I accept an arbitrary number of named
arguments". (Like the param() methods common in Perl5 do).

Maybe it's the slurpy hash?

sub foo (*%h) {...} ?

The spec could use some clarification on this point.

  Mark


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About