Traits and Types and Gnarly Stuff for Architects

  • David Pollak


So far, we’ve explored Scala from what I consider the “library-consumer” perspective. For the most part, when I’m consuming libraries, I dont’t worry about complex types, composing many traits into a class, or some of the other powerful features of Scala. “Why?” you may ask. Well, I’m worried about the transformation of input to output, happily mapping lists, and filtering Seqs. When I’m coding in this mode, I’m not reasoning about my types, but I’m confident that Scala will make sure I don’t do anything horribly wrong and that as long as my logic is sound, my code will work. When I’m in this mode, I’m writing code the same way I write Ruby code: I’m looking to get something to work and get some work done.


Type Parameter Class Hierarchy Abstract Class Invariant Type Library Producer 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© David Pollak 2009

Authors and Affiliations

  • David Pollak

There are no affiliations available

Personalised recommendations