eygraber
07/18/2023, 6:18 PMFilip Wiesner
07/18/2023, 6:27 PM• Named arguments forWHAAAT? What does this mean exactly? Just that I can't do this?lambda calls have been deprecated. This feature is relying on internal compiler APIs and will not be supported by K2.@Composable
val comp = @Composable { a: String ->
....
}
Or does that mean that I can't even do this?
@Composable
fun MyComposable(body: @Composable (a: String) -> Unit) {}
I guess that is the same thing but I use that! 😞 That's normal Kotlin feature so this seems like a significant omission.ephemient
07/18/2023, 6:41 PM@Composable
fun MyComposable(body: @Composable (a: String) -> Unit)
you can no longer use
body(a = "")
but must use the positional
body("")
instead. which is normal Kotlin to begin with, NAMED_ARGUMENTS_NOT_ALLOWED
on all non-composable lambdasFilip Wiesner
07/18/2023, 6:43 PMeygraber
07/18/2023, 7:08 PMephemient
07/18/2023, 7:19 PMfun f(a: Int, b: Int)
fun g(b: Int, a: Int)
for (h in listOf(::f, ::g)) {
h(1, 2)
h(a = 1, b = 2)
do…dewildte
07/18/2023, 7:57 PMdewildte
07/18/2023, 7:58 PMdewildte
07/18/2023, 7:58 PMZhangwei
07/20/2023, 2:14 AMephemient
07/20/2023, 2:35 AM