My question geared towards whether things like `fu...
# language-proposals
a
My question geared towards whether things like
fun Context.color(@ColorInt color: Int) = ContextCompat.getColor(this, color)
, came at a cost of a method count. I made a library similar to ktx back when I first started with Kotlin, and I had always thought that it would come at no cost to a developer because inlined functions were fully inlined. I guess if proguard strips away the unused methods that works too, but now I’m more conscientious about what I add since inline didn’t behave as I originally thought.
b
Why is method count so important to you?
a
It’s not entirely crucial to me, but I think we can all agree that as library creators, we should care about method count. Jake Wharton has also given talks about that. This is a matter of writing helper methods to simplify existing features vs creating helper methods for any conceivably useful feature.
b
I mean, I'm a library creator and I've never considered method count at all. Why is it important to you? Should I consider it too?