Re: does property exists in a record
Re: does property exists in a record
- Subject: Re: does property exists in a record
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 12 Aug 2001 19:13:15 -0700
On 8/12/01 6:59 PM, "Timothy Bates" <email@hidden> wrote:
>
I think that AppleScript would be enhanced if all arrays were associative.
>
This can be done transparently - array items simply take their item index as
>
a default name.
But records in AppleScript don't have item indices: records are unordered.
{a:1, b:2} = {b:2, a:1}. This is important and useful in many cases, so it
wouldn't be at all easy to make records associative, just like that,
although being able to coerce them to an ordered array - just as they can be
coerced to an ordered list (without labels) in the order that they happen to
find themselves, would be useful. And people who prefer these new-type
ordered arrays to standard records could use them all the time instead, if
they wished.
--
Paul Berkowitz