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

David Sweeris davesweeris at mac.com
Mon Jan 30 22:17:36 CST 2017

> On Jan 30, 2017, at 8:14 PM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> Just left a comment on the bug; it's clear we need some sort of new syntax, and I'd like to throw out `foo(:)` as a candidate, by analogy with `[:]` being an empty dictionary.

Works for me.

- Dave Sweeris

More information about the swift-evolution mailing list