Delegation


#1

In java I’ve been using Lombok’s @Delegate.
I tried to migrate that code to kotlin and could not.
Kotlin requires delegation to interfaces only and the target object to be passed via constructor parameter.
Why so much restrictions?
Why can’t I delegate to classes and use lateinit to store target object?
If I could I’d be able to mirgate with minimal efforts.