@article{bagrel_dp_2025,
author = {Bagrel, Thomas and Spiwack, Arnaud},
title = {Destination Calculus: A Linear $𝜆$-Calculus for Purely Functional Memory Writes},
year = {2025},
issue_date = {April 2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {9},
number = {OOPSLA1},
url = {https://doi.org/10.1145/3720423},
doi = {10.1145/3720423},
abstract = {Destination passing —aka. out parameters— is taking a parameter to fill rather than returning a result from a function. Due to its apparently imperative nature, destination passing has struggled to find its way to pure functional programming. In this paper, we present a pure functional calculus with destinations at its core. Our calculus subsumes all the similar systems, and can be used to reason about their correctness or extension. In addition, our calculus can express programs that were previously not known to be expressible in a pure language. This is guaranteed by a modal type system where modes are used to manage both linearity and scopes. Type safety of our core calculus was proved formally with the Coq proof assistant.},
journal = {Proc. ACM Program. Lang.},
month = apr,
articleno = {89},
numpages = {27},
keywords = {Destination Passing, Functional Programming, Linear Types, Pure Language}
}
