[swift-evolution] Proposal: Add @requires_super attribute

Tino Heth 2th at gmx.de
Wed Dec 16 17:03:51 CST 2015

> Default behavior would require something like "unrequire" which seems odd.
the keyword for requires_super is so odd, it doesn't even fit in a single word! ;-)
I think it is much easer to find a word for something that can be replaced completely than for "you have to call the implementation of the parent class"

> Also this would break a lot of existing code and migration can't be done automatically.
Two parts:
What is a lot? I really don't think calling super hurts in many places.
Why shouldn't it be possible to migrate automatically? It might get complicated for compiled libs, but definitely possible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151217/5eb01b1c/attachment.html>

More information about the swift-evolution mailing list