> I thought it was going to be any one subtype of Error, be it a struct, an > enum, or a protocol existential, or Error itself.
Imho we should remove the restriction that you can only throw Error-conforming types if typed throws are added: It's a compatibility feature, and if you manually declare what can be thrown, you should be allowed to break with Objective-C. As Error has no requirements at all, it looks like harassment, as its whole magic is neither visible nor necessary.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution