Does swift still use #?<br><br>foo(#)<br><br>It might be more obvious then <br><br>foo(_) <br><br>People might mistake it for foo(_:) if they are just glancing at it.<br><br>But foo(#) looks special. <br><div class="gmail_quote"><div dir="ltr">On Thu, Feb 23, 2017 at 1:07 PM Vladimir.S via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FWIW, I do think the foo(_) is the best variant. For me it means "no<br class="gmail_msg">
argument label AND no argument at all, as there is no `:` in it".<br class="gmail_msg">
foo(_:) means "no argument label BUT one argument". etc.<br class="gmail_msg">
As for `class()` IMO it is too cryptic. class(_) is more clear about what<br class="gmail_msg">
it *is*(because of _ as parameters, that symbol is not used when we call<br class="gmail_msg">
the func but used when we define a reference to it, like class(_:),<br class="gmail_msg">
class(_:something:)<br class="gmail_msg">
<br class="gmail_msg">
On 23.02.2017 17:36, Ben Rimmington via swift-evolution wrote:<br class="gmail_msg">
><br class="gmail_msg">
>> On 23 Feb 2017, at 14:23, Xiaodi Wu wrote:<br class="gmail_msg">
>><br class="gmail_msg">
>> What happens when you need the backticks for the function name itself? We can't nest them.<br class="gmail_msg">
><br class="gmail_msg">
> func `class`() {}<br class="gmail_msg">
><br class="gmail_msg">
> `class`() // Function call.<br class="gmail_msg">
><br class="gmail_msg">
> `class()` // Function reference.<br class="gmail_msg">
><br class="gmail_msg">
> -- Ben<br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> swift-evolution mailing list<br class="gmail_msg">
> <a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
><br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div>