Re: Can someone please explain (Language Guide)
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