Can we have a `fun Any?.println() = println(this)`...
# stdlib
g
Can we have a
fun Any?.println() = println(this)
function? I know there is already a
.sout
thing, but why would one use it if there will be println extension
s
I think this is too niche a use case to pollute everything with another extension function.
sad panda 1
7
j
.also(::println)
👍 6
☝️ 2
👍🏻 1
t
I think the problem is, it would make it difficult to print a blank line.
g
Yea, correct. Using it with normal println inside classes will become really awkward...