Skip to content

#kotlin

62 posts · page 1 of 8

Late initialization

1 min read

Sometimes, we want to initialize the properties of the class after it is created, but in a separate member function instead of using lazy

Property Delegation Tools

1 min read

The standard library contains special property delegation properties. Map is one of the few types in Kotlin library. Each property identifier becomes a String key for the map, and the property's type…

Operator Overloading

1 min read

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, in Kotlin, we do use the overload operators…

Generics in Kotlin

1 min read

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, they too also have the Generic code. Generi…