ACM Home Page
Please provide us with feedback. Feedback
Views: a way for pattern matching to cohabit with data abstraction
Full text PdfPdf (727 KB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 14th ACM SIGACT-SIGPLAN symposium on Principles of programming languages table of contents
Munich, West Germany
Pages: 307 - 313  
Year of Publication: 1987
ISBN:0-89791-215-2
Author
P. Wadler  Programming Research Group, Oxford University, UK and Programming Methodology Group, Chalmers University, Sweden
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 8,   Downloads (12 Months): 66,   Citation Count: 43
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/41625.41653
What is a DOI?

ABSTRACT

Pattern matching and data abstraction are important concepts in designing programs, but they do not fit well together. Pattern matching depends on making public a free data type representation, while data abstraction depends on hiding the representation. This paper proposes the views mechanism as a means of reconciling this conflict. A view allows any type to be viewed as a free data type, thus combining the clarity of pattern matching with the efficiency of data abstraction.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

Aug84
 
Aug85
BD77
 
Bir86
R.S. Bird. An introduction to the theory of lists. In Marktoberdory Workshop on Logics of ProgrammingI August 1985.
 
BMS80
R. Buretall, D. MacQueen, and D. Sanella. Hope: An ezpe~/mental applicatiee lancua~c. Technical Report Report CSR-62-80, Edinburgh University, Computer Science Dept., 1980.
 
Bur69
R.M. Bur~taU. Proving properties of programs by structural induction. The Comp~tter Journal, 12(1), February 1969.
FGJM85
FW86
HK84
 
Joh85
 
Mee84
L. Meertene. Algorithmlcs: Towards programming as a mathematical activity. In J. W. de Bskker, et. al., editors, Mathematics and Competer Science, North-Holland, 1984.
 
Pey87
S.L. Peyton-Jonee. Implementing Functional Languafes udng Graph Redttction. Prentice-Hall, 1987.
 
SH82
M.R. Sleep and S. HolmetrBm. A short note concerning lazy reduction rules of append. Sofltvare Practice and Ezpcr/ence, 12(11):1082--4, November 1982.
Tho86
 
Tur81
D.A. Turner. Recuraion equatio~ as a programming language. In J. Darlington, P. Henderson, and D. Turner, editors, Fur, ction~l Procmmming and lt~ Applications, Cambridge University Press, 1981.
 
Tur85
 
Wad87
P.L. Wadler. Compiling pattera matching; Lkt comprehenalone. In {Peyg?}.

CITED BY  43