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

Ben Rimmington me at benrimmington.com
Thu Feb 23 08:36:13 CST 2017


> 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



More information about the swift-evolution mailing list