Paper record

W2074802267

Lazy functional state threads

John Launchbury, Simon Jones

Year
1994
Venue
ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI)
References
11
Cited by
214

Details and counts from OpenAlex.

Abstract

Some algorithms make critical internal use of updatable state, even though their external specification is purely functional. Based on earlier work on monads, we present a way of securely encapsulating stateful computations that manipulate multiple, named, mutable objects, in the context of a non-strict, purely-functional language. The security of the encapsulation is assured by the type system, using parametricity. Intriguingly, this parametricity requires the provision of a (single) constant with a rank-2 polymorphic type.