https://kotlinlang.org logo
k

karelpeeters

07/01/2017, 12:36 PM
The Kotlin documentation says about delegates:
Property delegates don’t have to implement any interface, but they have to provide a getValue() function (and setValue() — for var's).
Why didn't they make it a requirement to implement the interface? Why do they have this one case of duck-typing, while the rest of the language requires implementing interfaces?