Newsgroups: perl.perl6.internals Path: g2news1.google.com!news4.google.com!newsfeed.stanford.edu!nntp.perl.org Return-Path: Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm Delivered-To: mailing list perl6-intern...@perl.org Received: (qmail 22044 invoked from network); 1 Jun 2005 12:57:22 -0000 Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111) by lists.develooper.com with SMTP; 1 Jun 2005 12:57:22 -0000 Received: (qmail 14845 invoked by uid 225); 1 Jun 2005 12:57:22 -0000 Delivered-To: perl6-intern...@perl.org Received: (qmail 14840 invoked by alias); 1 Jun 2005 12:57:21 -0000 X-Spam-Status: No, hits=-2.5 required=8.0 tests=BAYES_00,RCVD_BY_IP X-Spam-Check-By: la.mx.develooper.com Received-SPF: pass (x1.develooper.com: domain of d...@sidhe.org designates 64.252.94.178 as permitted sender) Received: from 178.94.252.64.snet.net (HELO sprite.sidhe.org) (64.252.94.178) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Wed, 01 Jun 2005 05:57:18 -0700 Received: (qmail 6101 invoked from network); 1 Jun 2005 11:41:54 -0000 X-Scanned-By: AMaViS-ng at sidhe.org Received: from unknown (HELO ?172.24.18.155?) (d...@64.252.94.178) by 178.94.252.64.snet.net with SMTP; 1 Jun 2005 11:41:51 -0000 Mime-Version: 1.0 Message-ID: In-Reply-To: <20050601021042.22209.qmail@web32914.mail.mud.yahoo.com> References: <20050601021042.22209.qmail@web32914.mail.mud.yahoo.com> Date: Wed, 1 Jun 2005 08:53:00 -0400 To: TOGoS , perl6-intern...@perl.org Subject: re: Keys Content-Type: text/plain; charset="us-ascii" ; format="flowed" Approved: n...@nntp.perl.org From: d...@sidhe.org (Dan Sugalski) At 7:10 PM -0700 5/31/05, TOGoS wrote: > > The 'used as' type indicates whether this key >> is to be used to do a by-integer-index (array) >> access or by-string-index (hash) access. > >Why not extend this to properties, too? Because properties (and attributes) are metadata. At the moment properties aren't ordered, but they could be I suppose. (well... maybe) Attributes certainly are. You may want to access them by name or by offset, in which case you wouldn't want an as-property flag in the key, but rather use a key structure to access properties and attributes. -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai d...@sidhe.org have teddy bears and even teddy bears get drunk