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

Austin Zheng austinzheng at gmail.com
Tue Feb 2 13:28:25 CST 2016


That makes sense too. It might be a little less elegant in appearance, but
I think all the expressive power is there.

Thanks for answering my questions; I'm now at +0 with this proposal and
look forward to seeing what other people have to say, for or again.

Austin

On Tue, Feb 2, 2016 at 11:26 AM, Joe Groff <jgroff at apple.com> wrote:

>
> 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/8c1dbcae/attachment.html>


More information about the swift-evolution mailing list