Using dependent types to express modular structure

David MacQueen

1986 · 160 citations · 12 references

Concepts

TL;DR

Modular constructs such as modules, packages, and clusters partition large programs into manageable, reusable components and provide information hiding, addressing organization challenges in large-scale software development. The study examines how existing modular language features satisfy the pragmatic needs of programming in the large.

Abstract

Writing any large program poses difficult problems of organization. In many modern programming languages these problems are addressed by special linguistic constructs, variously known as modules, packages, or clusters, which provide for partitioning programs into manageable components and for securely combining these components to form complete programs. Some general purpose components are able to take on a life of their own, being separately compiled and stored in libraries of generic, reusable program units. Usually modularity constructs also support some form of information hiding, such as "abstract data types." "Programming in the large" is concerned with using such constructs to impose structure on large programs, in contrast to "programming in the small", which deals with the detailed implementation of algorithms in terms of data structures and control constructs. Our goal here is to examine some of the proposed linguistic notions with respect to how they meet the pragmatic requirements of programming in the large.

References

12