Join Slack
Powered by
Really what the first example is: ```fun error(msg...
# announcements
d
dean
07/01/2016, 8:40 PM
Really what the first example is:
Copy code
fun error(msg: () -> String): Unit { return if (isErrorEnabled) error(msg.invoke()) }
This is no bueno, as you can't return a simple
if
statement!
👍 1
Open in Slack
Previous
Next