[swift-evolution] [Proposal] Automating Partial Application via Wildcards
Erica Sadun
erica at ericasadun.com
Tue Feb 2 12:16:42 CST 2016
> On Feb 2, 2016, at 11:15 AM, Chris Lattner <clattner at apple.com> wrote:
>
>
>> On Feb 2, 2016, at 9:33 AM, Erica Sadun via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> When called with wildcard tokens, the function is partially applied using the supplied arguments. For example:
>>
>> let partial1 = projectFunctionToCoordinateSystem(function: mySinFunction, p0: p0, p1: p1, x: _)
>> // partial1(x: xValue)
>
> One superficial comment on this: the use of _ here is a bad idea. _ already means something in expressions - “discard”, and a closely related thing in declarations - “ignore”.
>
> Adding a third very different thing (placeholder to be filled in later) seems like a really confusing thing to do.
>
> -Chris
>
#?
-- E, since it was freed up in the label liberation movement
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160202/a7f65f24/attachment.html>
More information about the swift-evolution
mailing list