Programming and Computer Software

, Volume 41, Issue 4, pp 224–230 | Cite as

Associated types and constraint propagation for generic programming in Scala

  • A. Pelenitsyn


Generic programming is a programming paradigm for creation of highly resuable software components through decoupling algorithms from specific data structures which are being processed. The rise of research on ways of handling generic programming in various programming languages took place last years. We analyze and develop a number of generic programming features, in particular associated types and constraint propagation, for the Scala programming language designed by Martin Odersky in École Polytechnique Fédérale de Lausanne.


Constraint Propagation Type Parameter Object Orient Program Graph Type Associate Type 
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.


  1. 1.
    Musser, D.A. and Stepanov, A.A., Generic Programming, Proceeding of International Symposium on Symbolic and Algebraic Computation, vol. 358: Lecture Notes in Computer Science, Rome, Italy, 1988, pp. 13–25.CrossRefGoogle Scholar
  2. 2.
    Jarvi, J., Willcock, J., and Lumsdaine, A., Associated types and constraint propagation for mainstream object-oriented generics, OOPSLA’05 Proc. of the 20th Annual ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages, and Applications, NY, USA: ACM New York, 2005, pp. 1–19.CrossRefGoogle Scholar
  3. 3.
    Wehr, S., Lammel, R., and Thiemann, P., JavaGI: Generalized Interfaces for Java, Proc. of the European Conf. on Object-Oriented Programming, Ernst, E., Ed., LNCS, vol. 4609, Berlin, Germany: Springer-Verlag, 2007, pp. 347–372.Google Scholar
  4. 4.
    Oliveira, B.C.d.S., Moors, A., and Odersky, M., Type classes as objects and implicits, OOPSLA’10 Proc. of the ACM Int. Conf. on Object Oriented Programming Systems Languages and Applications, NY, USA: ACM New York, 2010, pp. 341–360.CrossRefGoogle Scholar
  5. 5.
    Pelenitsyn, A., Generic and metaprogramming in software implementation of decoder for algebraic geometry codes, Prikl. Inform., 2012, no. 2 (38), pp. 60–70.Google Scholar
  6. 6.
    Garcia, R., Jarvi, J., Lumsdaine, A., Siek, J., and Willcock, J., An extended comparative study of language support for generic programming, J. Funct. Program., 2007, vol. 17, no. 2, pp. 145–205.CrossRefzbMATHGoogle Scholar
  7. 7.
    Gregor, D., Jarvi, J., Siek, J., Stroustrup, B., Dos Reis, G., and Lumsdaine, A., Concepts: Linguistic Support for Generic Programming in C++, ACM SIG-PLAN Conf. on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA’06), Portland, Oregon, 2006, pp. 291–310.Google Scholar
  8. 8.
    Sutton, A. and Stroustrup, B., Design of Concept Libraries for C++, Proc. SLE 2011 (International Conference on Software Language Engineering), 2011, pp. 97–118.Google Scholar
  9. 9.
    Cardelli, L. and Wegner, P., On Understanding Types, Data Abstraction, and Polymorphism, NY, USA, N.Y.: ACM Computing Surveys, 1985, vol. 17, no. 4, pp. 471–523.Google Scholar
  10. 10.
    Horstmann, C.S., Scala for the Impatient, Addison-Wesley, 2012.Google Scholar
  11. 11.
    Stroustrup, B., The C++0x “Remove Concepts” Decision, Dr. Dobb’s J., 2009; URL: Scholar

Copyright information

© Pleiades Publishing, Ltd. 2015

Authors and Affiliations

  1. 1.Southern Federal UniversityRostov-on-DonRussia

Personalised recommendations