[swift-evolution] Pitch: Compound name `foo(:)` for nullary functions

Xiaodi Wu xiaodi.wu at gmail.com
Thu Feb 23 08:49:20 CST 2017


Nice. That works well.
On Thu, Feb 23, 2017 at 08:36 Ben Rimmington <me at benrimmington.com> wrote:

>
> > On 23 Feb 2017, at 14:23, Xiaodi Wu wrote:
> >
> > What happens when you need the backticks for the function name itself?
> We can't nest them.
>
> func `class`() {}
>
> `class`() // Function call.
>
> `class()` // Function reference.
>
> -- Ben
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170223/b510e643/attachment.html>


More information about the swift-evolution mailing list