[swift-evolution] Final by default for classes and methods

Javier Soto javier.api at gmail.com
Mon Dec 7 13:12:05 CST 2015


This was brought up in a different thread about private by default.
Creating a new thread for this. Quoting Mathew from the other thread with a
short summary about the motivation behind this:

"It is not uncommon to have a need for a reference type without a need for
inheritance.  Superclasses should be intentionally designed to be
subclasses and the author required to opt-in to subclassing and member
overrides where that is required by the design."
-- 
Javier Soto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151207/d9cc7e5d/attachment.html>


More information about the swift-evolution mailing list