I have a chat on twitter, where someone is complai...
# random
o
I have a chat on twitter, where someone is complaining that using
throw
in the default value of a parameter is a problem in a language design. Can anyone imagine a valid reason to use it like this?
Copy code
fun foo(param: String = throw Exception())