Re: RFC 57 (v1) Subroutine prototypes and parameters
[email protected] (Nathan Wiger) Tue, 08 Aug 2000 08:49:07 -0700
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
> 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:
foo($x ||= 10, $y ||= 20);
For a little more clarity? Perhaps we're re-inventing the wheel with
some new syntax. This works, it's Perl, and it's obvious what's going
on.
-Nate