<div dir="ltr">Can I offer a more verbose alternative? How's `foo() -> _` for referring to a zero-parameter function? It's clearly not a function call, and it says you want to match regardless of what the return value is...</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 5, 2016 at 1:06 PM, Alex Hoppen via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 05 May 2016, at 19:38, Joe Groff via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
><br>
><br>
>> On May 5, 2016, at 10:16 AM, Jordan Rose via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>><br>
>><br>
>>> On May 5, 2016, at 10:03, Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>>><br>
>>> On May 5, 2016, at 8:59 AM, Alex Hoppen via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>>>> Say you have the function `foo() -> Int`. Then `foo()` calls `foo` and returns its return value of type `Int` – not a reference to the function of type `Void -> Int`.<br>
>>><br>
>>> Right.<br>
>>><br>
>>> That said, what is wrong with just “foo”?<br>
>><br>
>> As pointed out in the original post, that can refer to both ‘foo()’ and ‘foo(bar:)’ today.<br>
><br>
> We could change that, so that to refer to `foo(bar:)` you must use the full compound name.<br>
><br>
> -Joe<br>
<br>
</span>That would be my second favourite option if there is no support for `foo(_)`, which there doesn’t seem to be. If there is support for letting `foo` refer to the zero-parameter function, I will change the proposal.<br>
<span class="HOEnZb"><font color="#888888"><br>
– Alex<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div>