it all looks the same in the end
# announcements
j
it all looks the same in the end
r
You are of course right on a byte level. But it is a difference on a Kotlin level. With
class A{ companion object { fun test(){}}
a user of my library could use
A
whereas he cannot if I define
test
as an extension function. Or do I misunderstand what you mean?
What the hack was I talking about, extension functions are not a good replacement they cannot be used without a receiver.