[swift-evolution] Why doesn't Swift allow a variable and a function with the same name?

Joe Groff jgroff at apple.com
Mon Jan 30 21:54:06 CST 2017

> On Jan 30, 2017, at 7:34 PM, Jacob Bandes-Storch <jtbandes at gmail.com> wrote:
> Although there's no spelling for this... https://bugs.swift.org/browse/SR-3550

IMO, the way to spell `foo` with no arguments is just `foo`. If we strictly required the labels for referring to n-ary functions, that would make it unambiguous…


More information about the swift-evolution mailing list