Why would you forbid inheritance from classes per default? #Kotlin makes classes final as the default
4
1
@ewolff If it’s implementation inheritance, this seems to make a whole lot of sense
1
@stilkov have you seen significant problems in the real world with e.g. Java because of non-final classes?
2
Replying to @ewolff
@ewolff In the sense of people using inheritance when they shouldn’t have, yes.

Mar 1, 2016 · 10:54 AM UTC

2
3
Replying to @stilkov
@stilkov pk, I see the point.
Replying to @stilkov
@stilkov fun: #Kotlin allows you to add functions to existing classes - including final... :-P
1