[swift-evolution] [Proposal] Automating Partial Application via Wildcards
Erica Sadun
erica at ericasadun.com
Wed Feb 3 09:02:54 CST 2016
> On Feb 2, 2016, at 5:34 PM, Joe Groff <jgroff at apple.com> wrote:
>> I'm not suggesting they do otherwise. I was saying that using closures for partial application vs scala-style currying has a cost, which makes them less desirable for this (partial) application.
>
> Ultimately, I think we want argument labels to be part of the name, not half-part-of-the-name-half-part-of-the-type like they are today. In the pure-names model, you could plausibly be allowed to name closure variables with compound names:
>
> let partial2(p1:x:) = { projectFunctionToCoordinateSystem(function: mySinFunction, p0: .zero, p1: $0, x: $1) }
>
> -Joe
That would be awesome.
-- E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160203/cdad8852/attachment.html>
More information about the swift-evolution
mailing list