Are there other languages with feature similar to ...
# getting-started
k
Are there other languages with feature similar to Kotlin's inner claseses?
a
Java inner classes???
e
straight from Java, where all nested classes are inner classes by default unless explicitly declared static
k
huh, should've said outside of the Kotlin/Java/Scala ecosystem 🙂 Python, C#? Something more exotic? I'm guessing Rust/Go don't have anything similar to that...
e
C# has nested classes with reference to parent (like Java) Python has nested classes with no reference to parent (unless you add one explicitly)
Rust and Go don't have classes in the same form, so it's not comparable
but honestly the JVM doesn't really care about nested classes (aside from some access visibility), it's almost entirely a Java (etc.) language convention