A prime example would be the whole casting of variables.
In java you simple do:
String value = (String)object;
now in scala
val value:String = object.asInstanceOf[String]
now I admit it looks very clean, but sure took a while to find this one little details.
Otherwise it's always better to use matchers.
No comments:
Post a Comment