Friday, October 14, 2011

Static Typing

I ran across this post today, and it summed up nicely why I like Static languages, and why, even if you have to type some more in cases like Java, it's well worth it.

Yet Scala has type inference - so its typically as concise as Ruby/Groovy but that everything has static types. This is a good thing; it makes code comprehension, navigation & documentation much simpler. Any token/method/symbol you can click on to navigate to the actual implementation code & documentation. No wacky monkey patching involved, or doubting of who added a method, when and how - which is great for large projects with lots of folks working on the same code over long periods of time. Scala seems to hit the perfect sweet spot between the consise feel of a dynamic language, while actually being completely statically typed. So I never have to remember the magic methods that are available - or run a script in a shell then inspect the object to see what it really looks like - the IDE/compiler just knows while you edit.
James Strachan -
http://macstrac.blogspot.com/2009/04/scala-as-long-term-replacement-for.html

0 Comments:

Post a Comment

<< Home