The Kotlin 2.,2.0 release notes mention that: ```...
# compose
e
The Kotlin 2.,2.0 release notes mention that:
Copy code
Composable function references behave slightly differently from composable lambda objects at runtime. In particular, composable lambdas allow for finer control over skipping by extending the ComposableLambda class. Function references are expected to implement the KCallable interface, so the same optimization cannot be applied to them.
How are we supposed to control the interfaces that the function reference implements?
s
I am not sure what you mean by controlling? It is just a description of the implementation detail here.
e
Oh I see that now. At first glance it looks like an instruction to the user to make sure that function references implement KCallable