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
shikasd
06/23/2025, 7:09 PM
I am not sure what you mean by controlling? It is just a description of the implementation detail here.
e
eygraber
06/23/2025, 7:11 PM
Oh I see that now. At first glance it looks like an instruction to the user to make sure that function references implement KCallable