PHondogo
10/20/2022, 12:54 PMfun test(a: Int = <default value calculation>)
And caller
test(if (expr) 10 else <default value calculation> )
It will be good if there was possibility to pass some keyword that is treated as default value that was declared in function. For example:
test(if (expr) 10 else default)
dmitriy.novozhilov
10/20/2022, 12:59 PMPHondogo
10/20/2022, 1:07 PM