A resource modality for RAII
Résumé
We model exceptions in a linear, effectful setting by relaxing the notion of monadic strength to contexts that are discardable, in the spirit of C++ destructors. This gives rise to a resource modality reminiscent of unique_ptr and move semantics in C++11. We explore consequences in language design for resource management in functional programming languages.
Origine | Fichiers produits par l'(les) auteur(s) |
---|
Loading...