I am in the middle of writing some code so I wanted to leave a method unimplemented which I am calling but that pathflow is not hitting based on input I am providing. The method looks like this
object HbaseStore {
def get() = _
}
But the above code threw an exception
HbaseStore.scala:24: error: unbound placeholder parameter
[INFO] def get() = _
But when I replaced _
with ???
code executed successfully. I am just curious to know what is the difference between these two. As far as I know, _
provides default values so I assumed it would define an empty function here and return Nothing
.