What is the purpose of the variable name `value` i...
# getting-started
s
What is the purpose of the variable name
value
in
val lambda: (value: V) = { println(it) }
? Documentation?
i
https://kotlinlang.org/docs/lambdas.html#function-types
These names can be used for documenting the meaning of the parameters.
s
Wouldn’t it be great if we could use the names for something?
e
names should appear in the IDE
s
I mean in code, like
val lambda: (value: V) = { println(value) }
a
you would have to explicitly declare the name again inside the lambda body ( -> value) i was hoping that IDE could autocomplete named parameters at some point