Late initialization
Sometimes, we want to initialize the properties of the class after it is created, but in a separate member function instead of using lazy
Sometimes, we want to initialize the properties of the class after it is created, but in a separate member function instead of using lazy
So far, we have two ways to initialize properties:
The standard library contains special property delegation properties. Map is one of the few types in Kotlin library. Each property identifier becomes a Strin...
In Kotlin, we could connect a property to a delegate with the by keyword:
Back in the school while I was learning C++, operator overloading was one of the topics in academic. But in practice, I rarely overload operators. However, i...
I love template in C++ in the olden day. In many good languages that I had chance to come across, such as TypeScript, Java (it was added later) and Kotlin, t...
When I started doing Kotlin, the one that confused me the most was scope functions. However, once I understand what it is, it becomes my most favorite Kotlin...
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.