[swift-evolution] Language syntax proposal - shorthand for super invocations

Brent Royal-Gordon brent at architechies.com
Tue Feb 9 02:43:30 CST 2016


> Does super.widgetCount call the superclass’s `widgetCount`, or does it call the superclass’s implementation of the same getter, then call `widgetCount` on the returned Int?

Without offering an opinion either way on this proposal, I will note that the alternative suggestion of `super()` does not suffer from this ambiguity.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list