Lunatech Research - IT consulting, product research and software development

NederlandsEnglish
 

Literal data structures in Scala

Écrit par Bart Schuller le Mon, 2010-07-19 21:35

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.

Lire

About Lunatech

Lunatech Research was founded in 1993 as an IT consulting, product research and development team. Lunatech is a team of adept self-managing architects and programmers, working with a very experienced commercial team.

Contact us

Lunatech Research B.V.
Heemraadssingel 70
3021 DD Rotterdam, The Netherlands

Phone and email

Tel: +31 10 750 2600
Fax: +31 10 243 9902
Email: contact@lunatech.com