[swift-evolution] [Review #2] SE-0117: Default classes to be non-subclassable publicly
Tino Heth
2th at gmx.de
Sun Jul 17 05:15:27 CDT 2016
I naturally assumed that "public" and "open" would be two separate concepts, as it has been expressed that orthogonality* is favored.
But actually reading the proposal, it says:
"open is invalid on declarations that are not also public", which imho not only is an unnecessary mingling of the two concepts, it also blocks the option to declare methods that can't be called outside the framework, which isn't that uncommon in Cocoa (methods like UIView.drawRect wouldn't show up in autocompletion lists anymore).
The whole proposal is about limitation whose rationale is incomprehensible for many, but for this "restriction of the restriction", I can't see any rationale at all.
- Tino
* At class-level, there is afaics no orthogonality planned as well (a class that is abstract outside its moduleā¦ might be useful as well)
More information about the swift-evolution
mailing list