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

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

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