[swift-evolution] [Idea] Extend "required" to methods other than init()
nbirkholz at gmail.com
Thu Jan 14 18:38:15 CST 2016
My first ever post on this list or any open source project, sorry if I'm
not following procedure accurately, here.
Currently, the "required" keyword on an initializer causes subclasses to
implement their own init methods in place of the so-marked initializer. I
propose extending the use of the required keyword to methods such that when
a new subclass is created, it must create its own unique implementation of
the method, or at ;east explicitly invoke the superclass implementation via
Requiring child classes to implement the method will improve the
maintainability of codebases over time and is a logical extension of the
current implementation on initialization. This will provide a useful,
nondisruptive, nonbreaking communication tool.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution