Fighting bit Rot with Types (Experience Report: Scala Collections)

Authors Martin Odersky, Adriaan Moors

Thumbnail PDF


  • Filesize: 306 kB
  • 25 pages

Document Identifiers

Author Details

Martin Odersky
Adriaan Moors

Cite AsGet BibTex

Martin Odersky and Adriaan Moors. Fighting bit Rot with Types (Experience Report: Scala Collections). In IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science. Leibniz International Proceedings in Informatics (LIPIcs), Volume 4, pp. 427-451, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2009)


We report on our experiences in redesigning Scala's collection libraries, focussing on the role that type systems play in keeping software architectures coherent over time. Type systems can make software architecture more explicit but, if they are too weak, can also cause code duplication. We show that code duplication can be avoided using two of Scala's type constructions: higher-kinded types and implicit parameters and conversions.
  • Programming languages
  • scala
  • avoiding code duplication
  • higher-order kinds
  • type systems
  • polymorphism
  • collections library


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads
Questions / Remarks / Feedback

Feedback for Dagstuhl Publishing

Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail