Join Slack
Communities
Powered by
I have a chat on twitter, where someone is complai...
# random
o
orangy
05/28/2018, 8:21 AM
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())
Open in Slack
Previous
Next