> On Jul 2, 2015, at 14:41 , Quincey Morris > <[email protected]> wrote: > > On Jul 2, 2015, at 13:54 , Rick Mann <[email protected]> wrote: >> >>> On Jul 2, 2015, at 13:51 , Jonathan Hull <[email protected]> wrote: >>> >>> It is a closure which takes TypeA and returns TypeB. >> >> I thought those were written as this: >> >> (TypeA) -> TypeB >> >> With parentheses around the parameter list. > > A 1-tuple is the same thing as the value it encloses, and parameter lists > have the syntax of a tuple. However, if you also specify a parameter name: > > (type: TypeA) -> TypeB > > presumably because the operators wouldn’t associate in the correct order > otherwise.
Awesome, thanks for the clarification. I've written feedback on the Swift Closure docs to mention that. -- Rick Mann [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
