[swift-evolution] [Proposal] Automating Partial Application via Wildcards

Joe Groff jgroff at apple.com
Tue Feb 2 13:26:38 CST 2016


> On Feb 2, 2016, at 11:12 AM, Austin Zheng via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Hmm...the rationale that Joe provided makes a lot of sense.
> 
> One question - is the explicit closure syntax amenable to multiple levels of currying? In particular, what are the scoping rules for the placeholders $n - are they limited to the immediate closure within which they appear, or can they be used within further-nested closures?

Currently, they're always scoped to the immediate closure, so you need to use explicit named parameters if you want to nest closures.

-Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160202/0eb8a26f/attachment.html>


More information about the swift-evolution mailing list