Re: RFC 57 (v1) Subroutine prototypes and parameters
[email protected] (Nathan Wiger) Tue, 08 Aug 2000 09:38:22 -0700
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
> > foo($x ||= 10, $y ||= 20);
>
> That already has a meaning ... I tend to favor syntax that doesn't
> already have meaning
It does have meaning, but I think that's a plus. Currently, it doesn't
actually do anything (even in 5.6):
perl -e '
sub foo ($x ||= 20) {
print "x = $x\n";
}
&foo;
'
x =
Making this do something useful seems the best way to make it easily
accessible. Plus, it reserves :=, :, and all the others for other
possible uses.
-Nate