>
> Yeah, but the compiler could handle NSObject as a special case. Are there
> enough other special cases that it is worth documenting and exposing a
> fragile attribute on classes to the user?
>
Pitching in here.. currently if you do something remotely complex with
protocols and generics you need a bunch of classes for type erasure.
I don’t want to think about what happens if you annotate a class with the
"open” access modifier as @fragile/@inlineable though. Would @fragile become
transitive? :)
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution