develooper Front page | perl.perl6.internals | Postings from June 2005

re: Keys

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
June 1, 2005 05:57
Subject:
re: Keys
Message ID:
a06210205bec35fb183b8@[172.24.18.155]
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
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About