Join Slack
Powered by
that is kinda weird, dunno why invoking `println` ...
# announcements
s
Shawn
12/18/2017, 6:09 PM
that is kinda weird, dunno why invoking
println
would need to care about coercing
Int?
to
Int
👍 1
a
adam-mcneilly
12/18/2017, 6:09 PM
I was in the same boat, but I'm having trouble thinking of a reason against it. Who's responsibility is it to handle null? println, or the caller?
s
Shawn
12/18/2017, 6:11 PM
hmm, I mean, since the stdlib provides
println(Any?)
, ostensibly
println
takes on the responsibility
🤔 1
b
bj0
12/18/2017, 6:22 PM
also you can print a null value, it just prints as "null",
2
Views
Open in Slack
Previous
Next