Does Kotlin support a kind of duck typing? Because...
# announcements
v
Does Kotlin support a kind of duck typing? Because according to koans, one can simply define extension method
operator fun MyDate.rangeTo(other: MyDate): DateRange
and it will work without implementing any interface.
d
It's not really duck typing, but moreso operator overloading for a limited set of operators.
491 Views