Why does val x: Int = _ not compile but var x: Int = _ does?
val x: Int = _
var x: Int = _
I\'m getting error: unbound placeholder parameter.
error: unbound placeholder parameter
You can't reassign a vals value, so you cannot use _ (init with a default value for prescribed type) with it. But you can reassign a vars value, so it's a logical to initialize it with some default value, like in Java