[swift-evolution] [Proposal] Sealed classes by default

Matthew Johnson 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
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list