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

Popular posts from this blog

mysql - where clause in inner join query -

java - Why my included JSP file won't get processed correctly? -

php - MySQL Query for Advanced Search multiple criteria -