https://kotlinlang.org logo
t

thijs

04/06/2016, 2:18 PM
Is there a specific reason / best practice why for example
CharSequence.last()
is an extension function and
CharSequence.lastIndex
is an extension property? The
last()
could just as well be implemented as a property (might even make more sense)