[swift-evolution] Type based reference cycle detection

Darko Damjanovic darkodamjanovic at me.com
Sun Feb 28 14:36:35 CST 2016


> The key phrase here is “simple form”. We need to translate this into code at
> some point, no?

With „simple form“ I really mean the simplest possible form:

    class A {
       	var myB: B?
    }

    class B {
        var myA: A?
    }

So exactly class A and exactly class B. If I understand it correct then the detection of inherited or derived types (or Protocols) would only be possible during runtime.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160228/361e272d/attachment.html>


More information about the swift-evolution mailing list