[swift-evolution] Proposal: Add @requires_super attribute
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.
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...
More information about the swift-evolution