Is it a bad practice to have lambda inside lambda?...
# announcements
f
Is it a bad practice to have lambda inside lambda?
Copy code
(String) -> (() -> Unit)
Or is there any side effects?
s
probably depends on what you're using it for, but generally I don't think so.
t
I don't think that's a bad practice, but it's harder to read and understand the intent. I'd probably use a
typealias
to give an explicit name to the inner lambda
f
Thanks 👍