https://kotlinlang.org logo
#detekt
Title
# detekt
z

zmunm

05/15/2020, 9:06 AM
1.
Copy code
fun foo(bar : (String) -> Unit)
2.
Copy code
fun foo(bar : (name: String) -> Unit)
Hi. I don't know how can i call
name
.. Please give me a keyword lambda property.. lambda description.. anyway If it is
interface
, I think it is better to have
lambda description
. And when I use this function..
Copy code
startSmsUserConsent { name ->
   ...
}
I think it is good to specify
lambda description
. Is there any rule or plan for this?
g

gammax

05/15/2020, 9:10 AM
name
in this context is called lambda parameter
z

zmunm

05/15/2020, 9:13 AM
Awesome 👍 Thank you for quick response
g

gammax

05/15/2020, 9:14 AM
Detekt has something similar but it works in the opposite way: https://detekt.github.io/detekt/style.html#explicititlambdaparameter