Joao Pedrosa
Posts: 114
Nickname: dewd
Registered: Dec, 2005
|
|
Re: The Purpose of Scala's Type System
|
Posted: May 19, 2009 2:17 PM
|
|
When I started reading it I was kind of following him but when it got to the covariance and stuff discussion I started skipping it.
I am fairly addicted to dynamically typed languages in their Ruby and JavaScript forms and I am probably out of it when it comes to statically typed languages even when they try their hardest to work for more people as in Scala.
These interviews make for curious reading and after the editing work and whatnot they read quite fluidly. Thanks.
Having solved the type problem, it remains to be seen how Scala will solve the libraries and applications problems because I am fairly skeptical about how much easier it can make developing tons of applications and libraries that each can depend on each other but that also install and are used separately.
Say for example what RubyGems represents in Ruby-land or what JavaScript randomly loaded files represent in the JavaScript-land as in jQuery powered pages.
The answer to sharing code in Ruby has been made quite obvious since RubyGems came to be. The way for decoupling and sharing a module is "ship it in a gem!"
JavaScript has a little problem with scaling to larger applications but with the developments of libraries that help with OO inheritance, modules developments, and managing the dependence graph between files/modules be it a task that is run on the server-side from PHP/Ruby or on the client-side with YUI 3's on-demand module loading, that seems to be at least under development. Although folks also like using just a tad of JavaScript on a page by making use of jQuery for instance. So, on a site powered by jQuery, one can find lots of single pages that each make a little use of jQuery, and on the backend one can find PHP or some other technology also doing its piecemeal work.
When it comes to Scala entering said markets, just like on the question of Scala working for small (script) tasks just as for the big ones, I rather think that Scala is more principally targeted at the big ones which also means fewer applications and libraries in exchange for a solid experience.
If Scala had solved the issues of making "safe programming" a solved matter for every day developers, I am sure Microsoft would be all over trying to copy it. ;-)
So, in theory Scala could be used more generally, but in practice we will be talking about making Scala more popular for the foreseeable future, I fear.
And yeah, so much for the proud of making use of a solid base when your front-end is ActionScript, JavaScript, IronPython, IronRuby, JavaFX and C#. ;-)
|
|