Re: worth adding collections to the core language?

2002-10-31 Thread Austin Hastings
--- Damian Conway [EMAIL PROTECTED] wrote: Larry wrote: Possibly we might even extend the notion of hash to any junk. %hash = 1 | 2 | 3; So you're suggestion that a normal hash is a junction of pairs??? Damian Conway admits: Everything in Perl6 is 'Junk' Who can't see *this*

Re: worth adding collections to the core language?

2002-10-30 Thread Larry Wall
On Wed, 30 Oct 2002, Dave Storrs wrote: : In the Re: Wh[ie]ther Infix Superposition ops thread : : On Wed, 30 Oct 2002, Piers Cawley wrote: : : But given a decent Collection hierarchy: : : my $seen = Set.new($start,$finish); : : for - $next { : print $next unless $next =~

Re: worth adding collections to the core language?

2002-10-30 Thread Piers Cawley
Dave Storrs [EMAIL PROTECTED] writes: In the Re: Wh[ie]ther Infix Superposition ops thread On Wed, 30 Oct 2002, Piers Cawley wrote: But given a decent Collection hierarchy: my $seen = Set.new($start,$finish); for - $next { print $next unless $next =~ $seen;

Re: worth adding collections to the core language?

2002-10-30 Thread Piers Cawley
Piers Cawley [EMAIL PROTECTED] writes: Personally, I'd love to see something like the whole Smalltalk Collection hierarchy available complete with Bags, Sets, Dictionaries, OrderedCollections and the whole deal. I note, for instance that Christian Lemburg has implemented Set::Object, and

Re: worth adding collections to the core language?

2002-10-30 Thread Larry Wall
On Wed, 30 Oct 2002, Piers Cawley wrote: :It is a truth universally acknowledged that a language in : possession of a rich syntax must be in need of a rewrite. : -- Jane Austen? It is a truth universally acknowledged that a language in possession of a rich syntax must be in need

Re: worth adding collections to the core language?

2002-10-30 Thread Markus Laire
On 30 Oct 2002 at 11:09, Larry Wall wrote: On Wed, 30 Oct 2002, Piers Cawley wrote: :It is a truth universally acknowledged that a language in : possession of a rich syntax must be in need of a rewrite. : -- Jane Austen? It is a truth universally acknowledged that a

Re: worth adding collections to the core language?

2002-10-30 Thread Larry Wall
On Thu, 31 Oct 2002, Markus Laire wrote: : And you could always have something else as a backup for those : unfortunates who can't use «+» - like ^[+] : : What are the good reasons not to use «» ? It would force everyone to get their act together with respect to Unicode. Oh, wait, that's a

Re: worth adding collections to the core language?

2002-10-30 Thread Damian Conway
Larry wrote: The set features are a side effect of junctions, just as they're a side effect of hashes. An any junction might well be implemented underneath as a hash without values. Yep. Possibly we might even extend the notion of hash to any junk. %hash = 1 | 2 | 3; So you're