On Tue, Aug 08, 2000 at 08:49:07AM -0700, Nathan Wiger wrote:
> > True.
> >
> > I wonder if we could change '=>' to always quote the lhs, even if
> > prefixed by '$', '@', or '%' (maybe we should only enable this
> > behaviour inside parameter lists?) That would allow us to do this.
>
> That's gonna take some digestion time.
>
> In the meantime, is there a reason the suggestion of:
>
> > foo($x := 10, $y := 20)
>
> was dropped? It seems pretty obvious to me. Or what about:
or even
foo($x : 10, $y : 20);
>
> foo($x ||= 10, $y ||= 20);
That already has a meaning ... I tend to favor syntax that doesn't
already have meaning here, thus the following are no good for me:
foo($x => 10, $y => 20);
foo($x = 10, $y = 20);
foo({$x => 10, $y => 20 } );
foo($x ||= 10, $y ||= 20);
But, these are okay:
foo($x : 10, $y : 20);
foo($x := 10, $y := 20);
although that second one gives me the pascal-shakes ;-)
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
- 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
- Re: RFC 57 (v1) Subroutine p... Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine p... Bart Lateur
- Re: RFC 57 (v1) Subroutine p... Andy Wardley
- Re: RFC 57 (v1) Subroutine p... Bart Lateur
- Re: RFC 57 (v1) Subroutine prototypes and... Jonathan Scott Duff
- Re: RFC 57 (v1) Subroutine prototypes and paramet... Chaim Frenkel
- Re: RFC 57 (v1) Subroutine prototypes and parameters H.Merijn Brand
