On Mon, Aug 07, 2000 at 10:42:32PM +0200, Bart Lateur wrote:
> On Tue, 8 Aug 2000 06:28:27 +1000 (EST), Damian Conway wrote:
> No, seriously: unless you can read those variables as x or y, I wouldn't
> drop the prefixes. It's not consistent. If you use the values as $x or
> @t, then please, use $x and @t in the above syntax, as well.
This doesn't make sense to me, because those are not variables that
are currently in-scope. They're only in-scope inside the sub you're
calling. And in fact if you require the prefixes, you're *continually* going
to be writing code that looks like:
foo( $name : $name, @addresses : @addresses, $email : $email );
because you're often going to name in-scope variables the same thing as
the parameter names for the sub.
I prefer:
foo( name : $name, addresses : @addresses, email : $email );
even though I'd rather that:
foo( name => $name, addresses => \@addresses, email => $email );
"just worked" somehow. Magical thinking, I know.
--
Jacob Davies
[EMAIL PROTECTED]
- Re: RFC 57 (v1) Subroutine prototypes and parameters Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Jacob Davies
- Re: RFC 57 (v1) Subroutine prototypes and par... Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and parameters Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Chaim Frenkel
- Re: RFC 57 (v1) Subroutine prototypes and parameters Chaim Frenkel
- Re: RFC 57 (v1) Subroutine prototypes and parameters Piers Cawley
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Piers Cawley
- Re: RFC 57 (v1) Subroutine prototypes and parameters Damian Conway
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Bart Lateur
- 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... Nathan Wiger
- Re: RFC 57 (v1) Subroutine proto... Andy Wardley
- Re: RFC 57 (v1) Subroutine p... Bart Lateur
- Re: RFC 57 (v1) Subroutine p... Andy Wardley
- Re: RFC 57 (v1) Subroutine p... Nathan Wiger
- Re: RFC 57 (v1) Subroutine p... Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine p... Nathan Wiger
- Re: RFC 57 (v1) Subroutine p... Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine p... Nathan Wiger
