Re:Effective Scala
by smrtinsert on Thursday September 05, 2013 @08:07AM
(#6333577)
robust is debatable, I suppose you mean type safe.
[ Parent
| on HN ]
Re:Effective Scala
by auggierose on Thursday September 05, 2013 @08:16AM
(#6333622)
I mean type safe, therefore much faster code out of the box, easier refactoring (not trivial refactoring, but changing interfaces of libraries and the like), better documentation generator, better build tool, up-to-date tools for google app engine, great Eclipse support, ....
In short: more robust
You actually mean statically typed. Scala is only limitedly type-safe, and is certainly not type-theoretic type-safe at all:
$ cat NotTypesafe.scala
object NotTypesafe {
def main(args: Array[String]) {
println("5".asInstanceOf[Int])
}
}
$ scalac NotTypesafe.scala
$ scala NotTypesafe
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
http://en.wikipedia.org/wiki/Type_safety
Re:Effective Scala
by auggierose on Thursday September 05, 2013 @01:45PM
(#6335614)
Well, I've got a PhD in computer science, I just use the words as I please. But yes, you are right ;-)