Title :
Objects and data structures in the FP paradigm
Author_Institution :
Dept. of Comput. & Inf. Sci., Oklahoma State Univ., Stillwater, OK, USA
Abstract :
The way in which local data and data structures can be incorporated into untyped functional programming (FP) is demonstrated. A functional form called an infinite conditional (the CASE functional form) is added to the set of functional forms. CASE can be used to select functions dynamically, which has the effect of transforming objects into functions. In order to simulate pointers in algorithms on data structures, CASE could be used to define functions, which has the effect of changing contents of nodes into selector functions. Objects are defined using data structures which support local data. None of the definitions violate the simple semantics of FP. The object definitions also provide a mechanism to incorporate I/O into the FP style of programming
Keywords :
data structures; programming; CASE functional form; I/O; data structures; dynamic function selection; infinite conditional; local data; selector functions; untyped functional programming; Algebra; Arithmetic; Computer aided software engineering; Computer languages; Data structures; Functional programming;
Conference_Titel :
Computers and Communications, 1988. Conference Proceedings., Seventh Annual International Phoenix Conference on
Conference_Location :
Scottsdale, AZ
Print_ISBN :
0-8186-0830-7
DOI :
10.1109/PCCC.1988.10081