• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: does property exists in a record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does property exists in a record


  • Subject: Re: does property exists in a record
  • From: Timothy Bates <email@hidden>
  • Date: Mon, 13 Aug 2001 13:01:35 +1000

>> 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.

>On 13/8/01 12:13 PM, "Paul Berkowitz" <email@hidden> wrote:
> 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

The idea is that arrays become associative arrays. Nothing happens to
records.

> And people who prefer these new-type ordered arrays to standard records could
> use them all the time instead, if they wished.
Exactly. We all win.

tim


  • Follow-Ups:
    • Hash arrays [was: does property exists in a record]
      • From: Greg Strange <email@hidden>
References: 
 >Re: does property exists in a record (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: does property exists in a record
  • Next by Date: Re: Akua Sweets and Writing long version resource?
  • Previous by thread: Re: does property exists in a record
  • Next by thread: Hash arrays [was: does property exists in a record]
  • Index(es):
    • Date
    • Thread