Join Slack
Powered by
Should a print method `fun T.print() println(...)`...
# getting-started
h
holgerbrandl
04/17/2018, 7:30 AM
Should a print method
fun T.print() println(...)
for some type T return
Unit
or
Nothing
?
Unit
seems more correct, but then the result of
print()
is assignable to a variable which lacks semantics.
Open in Slack
Previous
Next