Re: Script Libraries
Re: Script Libraries
- Subject: Re: Script Libraries
- From: Shane Stanley <email@hidden>
- Date: Mon, 20 Jun 2016 11:47:04 +1000
On 20 Jun 2016, at 10:53 AM, Phil Stokes <email@hidden> wrote:
>
> Interestingly though, despite the fact that the Cocoa APIs are written interleaved, Apple now wants them to do it "the other way" with Swift.
Not really. Yes, they're using parens, but the parameters (apart from the first one) are still individually named. Here's an example from the docs in Swift 2.2:
func sayHello(personName: String, alreadyGreeted: Bool) -> String {
//
sayHello("Tim", alreadyGreeted: true))
The Wikipedia entry describes it as "the interleaving of selector segments with argument expressions, for which there is no direct equivalent in C/C++".
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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