case - Why cant we use Any or Nothing in scala pattern matching? -
I have seen that in the following circumstances, the type "type" can be used, but none or nothing, Can not
user match {case int = & gt; "ScalaIt" Case Any = & gt; "?" } Why does Scala case class differentiate between these types
is not really anything at all (no such examples are present) to match anybody with only _ Can be used
Comments
Post a Comment