Tag: kotlin
All the articles with the tag "kotlin".
-
Kotlin is null-safe until it meets your Java code
Kotlin platform types cause delayed NullPointerException in Java interop. How read-only collections stay mutable and internal becomes public.
-
Please don't suppose Kotlin developers know Java
8% of Kotlin developers never learned Java — and the ecosystem still assumes they did. Why this matters and what we can do about it.
-
Kotlin indexed access operator: Replace get/set calls with [ ] syntax
How to implement custom indexed access operators in Kotlin, with a chessboard example. Explains the IntelliJ suggestion 'replace function call with indexed accessor'.
-
Kotlin apply() for nested Java objects: stop writing endless setters
Use Kotlin's apply() scope function to build deeply nested Java objects without intermediate variables. Before/after examples with real API code.