[SR-11188] New abstract keyword for classes #53585
Labels
compiler
The Swift compiler in itself
feature
A feature request or implementation
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 3568221af408b2c86b03354637ddf549
Issue Description:
I have found numerous instances in which I would like to provide partial protocol conformance in a superclass, while leaving some of the protocol requirements unfulfilled. Traditionally this is called a partially abstract class. While Swift's protocols act as traditional purely abstract classes/structs, it would be helpful to have partially abstract classes/structs which leave some requirements for descendants to fulfill.
I would expect that abstract classes and abstract structs could not be directly initialized and that the init methods could only be called from subclasses' init methods.
I would like to use an abstract keyword like this:
The text was updated successfully, but these errors were encountered: