underscores for default parameters does currently ...
# getting-started
f
underscores for default parameters does currently not work? I thought I read that somewhere
t
Have you tried double underscores?
f
seems like I've mixed something up
that doesnt seem to work for function parameters
c
They can be used for ignoring lambda parameters, not for default function parameters. Can you give us a code snippet for what you’re trying to do?
t
Can you give a code example of what you are trying to do?
This compiles for example:
Copy code
private fun doSomething(__: String = ""){

    }
doSome(__ = "Some text..")
n
@Casey Brooks is right it’s only for parameters in lambdas
f
I must've mixed that up, thank you
n
no worries i did the same mistake when it was released 😅