Re: RFC 57 (v1) Subroutine prototypes and parameters
[email protected] (Bart Lateur) Mon, 07 Aug 2000 22:39:42 +0200
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On Mon, 7 Aug 2000 11:59:35 -0700, Jacob Davies wrote: >I almost don't think named parameters are worth having unless you can supply >hashes or hashrefs to the subs; otherwise, you can't build parameter lists >outside the sub call itself. Oh yes they have. Look at modules with functions with a lot of optional parameters (typically 10 or more), for example in CGI.pm. There's even a special syntax for such parameters: -name => $value This is named arguments in disguise. -- Bart.