I was missing that functionality a lot from swifts...
# announcements
c
I was missing that functionality a lot from swifts enums, and though I'd heard the term 'sealed' classes I'd somehow thought it just meant 'final'...
m
chris-hatton: sealed means final in .NET
c
Yes I think that's where I got the impression from.
Obviously a wrong one, but like many other times, I was glad to be wrong. Sealed class is a very useful feature.
m
It is, indeed.
Especially since when you can inherit data class from it.
c
Fact it cannot be 'inner' and hence use the type parameters of the parent class is somewhat of a limitation
I think it will force me into casting