[swift-evolution] [Proposal] Sealed classes by default
matthew at anandabits.com
Wed Jun 29 12:18:59 CDT 2016
Sent from my iPhone
> On Jun 29, 2016, at 12:15 PM, Michael Peternell via swift-evolution <swift-evolution at swift.org> wrote:
>> Am 29.06.2016 um 15:54 schrieb David Sweeris via swift-evolution <swift-evolution at swift.org>:
>> +1 for the concept of a "sealed” class.
>> -1 for making it default.
> Aren't sealed classes already implemented? I think the keyword is `final`..
> So there is nothing left to do :)
Sealed and final are very different. Sealed allows subclasses *within the declaring module* but final does not allow any subclasses at all.
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution