[swift-evolution] Add code to super methods.

Christopher Kornher ckornher at me.com
Thu Nov 17 13:52:25 CST 2016


If memory serves: the CLOS Metaobject Protocol had features like this. This might be good read if you are considering writing a proposal for this. (Dylan Lives! :) )

https://en.wikipedia.org/wiki/The_Art_of_the_Metaobject_Protocol <https://en.wikipedia.org/wiki/The_Art_of_the_Metaobject_Protocol>

As I remember, these sorts of features did have scalability issues.


> On Nov 17, 2016, at 3:54 AM, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
> 
> An equivalent of "NS_REQUIRES_SUPER" (hopefully with a better name ;-) has been requested several times, but never got the momentum it deserves.
> Considering the current confusion (especially in UIKit), it would be really nice to have some help from the compiler, and I wonder how composition and protocols would be helpful here at all.
> 
> I guess the problem is that there are to many options for this feature without an obvious favorite: Not only for the keywords, but also for the exact semantic.
> 
> Additionally, there are imho already to many access levels (private, fileprivate, internal, public, extendable?, open), so I hope we'll someday find a solution that is powerful enough to replace the special willSet/didSet treatment for properties as well.
> 
> So unless somebody has a real flash of genius, I guess it's better to delay discussion until there is a chance for new proposals to be accepted.
> 
> Tino
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161117/560ffecb/attachment.html>


More information about the swift-evolution mailing list