[swift-evolution] Proposal: Universal dynamic dispatch for method calls
clattner at apple.com
Mon Dec 14 14:58:49 CST 2015
On Dec 14, 2015, at 8:23 AM, Matthew Johnson <matthew at anandabits.com> wrote:
>> You can also think about the feature in terms of common metrics by asking things like “what is the error of omission?” which occurs someone fails to think about the feature. For example, if methods defaulted to final, then the error of omission would be that someone didn’t think about overridability, and then discovered later that they actually wanted it.
> In this example I think it is reasonable to consider “what is the error of omission?” from the reverse standpoint.
> Because methods do not default to final somebody may not think about inheritance / overridability and fail to specify final. The class or method may be one that really should not be inheritable / overridable or it may be one where this is reasonable, …
Understood, I wasn’t trying to present a well-rounded analysis of this decision, I just wanted to use it as a simple example.
More information about the swift-evolution