> Hmm... I think I'd rather see 
> 
>   my $foo is Bag = @array.as('Bag');
> 
> The idea being that one could treat hashes and arrays as syntactic
> vitamins meaning 'Dictionary' (to use the Smalltalk term) and
> 'OrderedCollection', but all Collections would implement an C<as>
> method allowing conversion between the different classes.
> 
> Hmm... you know, the more I think about that idea, the more I like
> it... 

Likewise.  I've always liked languages with complete standard libraries in 
terms of data structures.  It would be great to see Perl be one of them.

Luke

Reply via email to