3 ms·
I don’t understand how you think this should be implemented. Many classes informally conform to protocols or in some cases the conformance can only be checked a
by saagarjha 8y ago
I don’t understand how you think this should be implemented. Many classes informally conform to protocols or in some cases the conformance can only be checked at runtime with a respondsToSelector: check. So any generics at compile time stricter than what we currently have will just not work or be useful.
- valuearb 8y agoNot useful as I’d rather find that mistake when a customer reports the crash, instead of having the compiler tell me?
- saagarjha 8y agoThe point I'm making is that the compiler can't tell you this, since conventional Objective-C code does generics checking at runtime. There's just not enough information available for this to be reliably diagnosed.