Follow

- Swift classes and members are Internal by default; Kotlin classes are public
- Swift classes and members are non-final by default; Kotlin classes and members are final
- Kotlin does not have statics! It has companion objects instead

You can access members of companion objects with the same Type.member syntax as statics. Differences in statics vs companions require more transpiler support as we get into complex use cases, though

We’ll explore that and many other topics in future posts!

· · Web · 0 · 0 · 0