Kotlin Functions to Extension Functions

Опубликовано: 06 Октябрь 2024
на канале: Pairing with Duncan
258
12

Dmitry Kandalov (   / dkandalov  ) and I tried the refactoring from Chapter 10 of Java to Kotlin, A Refactoring Guidebook (https://java-to-kotlin.dev/).

Extension functions are one of my favourite features of Kotlin, as they allow us to add operation to types that we don't own. Here we look at how they can also make our code much more readable.