Paper record

W2912106379

Linear Types can Change the World

Philip L. Wadler

Year
1990
Venue
—
References
0
Cited by
406

Details and counts from OpenAlex.

Abstract

The linear logic of J.-Y. Girard suggests a new type system for functional languages, one which supports operations that "change the world". Values belonging to a linear type must be used exactly once: like the world, they cannot be duplicated or destroyed. Such values require no reference counting or garbage collection, and safely admit destructive array update. Linear types extend Schmidt's notion of single threading; provide an alternative to Hudak and Bloss' update analysis; and offer a practical complement to Lafont and Holmstrom's elegant linear languages. An old canard against functional languages is that they cannot change the world: they do not "naturally" cope with changes of state, such as altering a location in memory, changing a pixel on a display, or sensing when a key is pressed. As a prototypical example of this, consider the world as an array. An array (of type Arr) is a mapping from indices (of type Ix ) to values (of type Val ). For instance, the world might be a m...