Is there any alternative for @EagerInitialization ...
# kotlin-native
m
Is there any alternative for @EagerInitialization ?
r
I'm afraid that there's not necessarily a direct alternative but you can just mention the object/value/variable you want initialized at the start of your program app Like
Copy code
fun main() { MyObject; /*...*/
All the fields of classes and objects are initialized when the class is instantiated