• 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: Can someone please explain (Language Guide)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can someone please explain (Language Guide)


  • Subject: Re: Can someone please explain (Language Guide)
  • From: Chris Page <email@hidden>
  • Date: Thu, 17 Jan 2008 00:24:30 -0800

On Jan 10, 2008, at 4:26 AM, Nigel Garvey wrote:

It's often tempting to use labelled parameters with handlers, but there
are so few labels available that the results are usually mangled or
misleading English. Many people stick with ordered parameters on
principle, for simplicity and unambiguity.


A perhaps lesser-known feature is "given", which lets you define arbitrary parameter names:

  on foo given red:r, green:g, blue:b
  	log {r, g, b}
  end foo

  foo given red:1, green:2, blue:3

--
Chris Page

 The other, other AppleScript Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Can someone please explain (Language Guide) (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Obfuscations and little white lies
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: Can someone please explain (Language Guide)
  • Next by thread: tell or not to tell
  • Index(es):
    • Date
    • Thread