SIDEBAR
»
S
I
D
E
B
A
R
«
Odersky Paper a Must Read to Master Scala
December 19th, 2009 by Brian Maso

Odersky’s Scalable Component Abstractions is an absolute must read for anyone planning on mastering Scala. The paper explains the purpose and use of three important Scala idioms you’d probably take a long time to figure out on your own:

  1. Abstract Type Members. Prior to reading the paper, I figured abstract type members are just another way of expressing type parameters — that is, generic type params in Java. Not so! Abstract type members turn out to be an incredibly important  way of promoting code re-use through subtype parameters.
  2. Traits. “Module mix-in components” is the term used in the paper, but in Scala this means traits. The paper explains how traits promote code re-use through much more flexible composition than Java’s interfaces+single base class.
  3. Explicit Selftypes. Not so mind expanding as abstract type members and traits, but definitely a concept that needs anchoring for someone coming from Java or similar OO languages.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

»  Substance:WordPress   »  Style:Ahren Ahimsa