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.
- RFC 57 (v1) Subroutine prototypes and parameters Perl6 RFC Librarian
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine prototypes and par... Jacob Davies
- Re: RFC 57 (v1) Subroutine prototypes and... Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and par... Chaim Frenkel
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Chaim Frenkel
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Piers Cawley
- Re: RFC 57 (v1) Subroutine prototypes and par... Piers Cawley
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Damian Conway
- Re: RFC 57 (v1) Subroutine prototypes and par... Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and... Jacob Davies
- Re: RFC 57 (v1) Subroutine prototypes... Bart Lateur
- Re: RFC 57 (v1) Subroutine proto... Nathan Wiger
