Hi, everyone I have simple question, maybe it's al...
# announcements
n
Hi, everyone I have simple question, maybe it's already answered somewhere but didn't managed to find answer. In Kotlin documentation about lambda formatting :
Copy code
If a call takes a single lambda, it should be passed outside of parentheses whenever possible.
and IDEA always show warning in code about this. I wondering why it should be formatted in that way? Is it just style and readability guidelines? Or it have technical meaning behind it?
g
No technical meaning, just a matter of style and readability, so lambda becoming a code block, but there are exceptions for this style for sure, for example when you have 2 lambda params, in this case I just use named arguments
n
@gildor thanks