Prefer Function Reference over Lambda in Kotlin? Wrong!
Using lambda as callback is very common in Jetpack compose, but do you know you can also use function reference to replace the lambda?
When I first heard about this function reference, I thought the function reference must be better. Unlike anonymous...
vtsen.hashnode.dev6 min read
Mohammed Mahmood Ahmed
Hi vincent
I am currently using kotlin 2.0.0RC but the function reference is performing at par with the non-object function.
I ran the same tests that you mentioned in the article