Here's an idea to make lambdas inline without gene...
# compose
l
Here's an idea to make lambdas inline without generating huge bytecode: All composable functions that accept one composable lambda take a hidden
Boolean
parameter named something like
before
. If it's
true
, the code before the lambda is run, if
false
, the code after runs. Then, at runtime, the function is called once with
true
, the inlined lambda is called, then the function is called again with
false
.