Re: RFC 238 (v1) length(@ary) deserves a warning
[email protected] (Nathan Wiger) Sat, 16 Sep 2000 09:47:30 -0700
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
Michael G Schwern wrote:
>
> I'm surprised there hasn't be a good overhaul of the prototyping
> system proposeed yet. Your length() propsal wouldn't be the only
> think that can't be prototyped. print() is the simplest example.
I think print should probably become something like what Eryq suggested:
CORE::print { $main::DEFOUT->print(@_) }
With the function-style:
print($FILE @data);
being handled by a more general mechanism to coerce it into:
print $FILE (@data);
like the one in RFC 174 (v2 due out today, hopefully).
-Nate