Interesting point you made about context.  $size = @array is typically
the first introduction of the idea of contexts to a new programer.


On Sat, Sep 16, 2000 at 03:38:47AM -0000, Perl6 RFC Librarian wrote:
> (2) require changes to the prototype system to permit length() to
> still be overridable.

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.  The
limitations of the prototyping system shouldn't be a reason to hold
back length(@array).  Your arguments about teaching context is enough,
though.

Perhaps we need prototype support for polymorphic functions? 
(Something like RFC 97).

-- 

Michael G Schwern      http://www.pobox.com/~schwern/      [EMAIL PROTECTED]
Just Another Stupid Consultant                      Perl6 Kwalitee Ashuranse
Plus I remember being impressed with Ada because you could write an
infinite loop without a faked up condition.  The idea being that in Ada
the typical infinite loop would be normally be terminated by detonation.
        -- Larry Wall in <[EMAIL PROTECTED]>

Reply via email to