skip to main content
10.1145/940880.940885acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
Article

Parameterized modules in Erlang

Published:29 August 2003Publication History

ABSTRACT

This paper describes how the Erlang programming language could be extended with parameterized modules, in a way that is compatible with existing code. This provides a powerful way of creating callbacks, that avoids the limitations involved with function closures, and extends current programming practices in a systematic way that also eliminates a common source of errors. The usage of parameterized modules is similar to Object-Oriented programming, and is naturally complemented by the currently underused feature of behaviours (interface declarations), which are also explained in detail.

References

  1. J. Armstrong, R. Virding, C. Wikström, and M. Williams. Concurrent Programming in Erlang. Prentice-Hall, second edition, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. T. Budd. An Introduction to Object-Oriented Programming. Addison-Wesley, second edition, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. L. Cardelli, J. Donahue, L. Glassman, M. Jordan, B. Kalsow, and G. Nelson. Modula-3 language definition. SIGPLAN Notices, 27(8):15--42, Aug. 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. O. Dahl and K. Nygaard. Simula, an Algol-based simulation language. Communications of the ACM, 9(9):671--678, Sept. 1966. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. Gosling, B. Joy, and G. Steele. The Java Language Specification. Addison-Wesley, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. N. D. Jones, C. K. Gomard, and P. Sestoft. Partial Evaluation and Automatic Program Generation. Prentice Hall, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. C. Kay. The early history of Smalltalk. ACM SIGPLAN Notices, 28(3):69--75, Mar. 1993. The Second ACM SIGPLAN History of Programming Languages Conference (HOPL-II). Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. B. Meyer. Eiffel, The Language. Prentice Hall, Englewood Cliffs, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Military Standard. Reference manual for the Ada programming language. Technical Report ANSI/MIL-STD-1815A-1983, United States Government Printing Office, 1983.Google ScholarGoogle Scholar
  10. R. Milner, M. Tofte, and R. Harper. The Definition of Standard ML. MIT Press, Cambridge, MA, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. B. Stroustrup. The C++ Programming Language. Addison-Wesley, second edition, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. Zenger. Programming Language Abstractions for Extensible Software Components. PhD thesis, Ecole Polytechnique Federale de Lausanne, Switzerland, draft version, 2003.Google ScholarGoogle Scholar
  1. Parameterized modules in Erlang

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      ERLANG '03: Proceedings of the 2003 ACM SIGPLAN workshop on Erlang
      August 2003
      76 pages
      ISBN:1581137729
      DOI:10.1145/940880

      Copyright © 2003 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 29 August 2003

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      Overall Acceptance Rate51of68submissions,75%

      Upcoming Conference

      ICFP '24

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader