There was a proposal as well to get property accessor method access directly, without referencing the function.
If you had obj#myProperty.get() -> Val and obj#myProperty.set(_:Val) as functions (# syntax being a placeholder more than a proposal) perhaps then you could also have something like obj#myProperty.clear() -DW > On Dec 23, 2015, at 10:07 AM, Joe Groff via swift-evolution > <swift-evolution@swift.org> wrote: > > I agree that "myProperty.clear()" is very appealing, but it has the potential > to be confusing when behavior methods are shadowed by members of the > front-facing property. You'd still need a way to unambiguously refer to > behavior methods when they're shadowed too. > > -Joe
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution