Join Slack
Powered by
Does Kotlin support a kind of duck typing? Because...
# announcements
v
Vlad
03/28/2019, 1:31 PM
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
diesieben07
03/28/2019, 1:34 PM
It's not really duck typing, but moreso operator overloading for a limited set of operators.
491
Views
Open in Slack
Previous
Next