Here is an example of a striking difference in verbosity between Java and Scala. Some languages make it easy to concisely declare data structures in your code. Perl, Python, Ruby, PHP all do. Java doesn't.
Let's say you would like to maintain a simple lookup table in your code, to map from country code to country name. And to make it more interesting, let's say you want to have the country names in a couple of different languages.
Copyright © 2005-2012, Lunatech Research B.V. Tous droits réservés.