| HAL : hal-00445873, version 4 |
| arXiv : 1001.1662 |
| Fiche détaillée | Récupérer au format |
|
|
| Versions disponibles : | v1 (11-01-2010) | v2 (21-01-2010) | v3 (31-05-2010) | v4 (20-05-2011) |
|
|
|
|
| States and exceptions considered as dual effects |
|
|
| Jean-Guillaume Dumas 1Dominique Duval 1 |
|
|
| (19/05/2011) |
|
|
| In this paper we consider the two major computational effects of states and exceptions, from the point of view of diagrammatic logics. We get a surprising result: there exists a symmetry between these two effects, based on the well-known categorical duality between products and coproducts. More precisely, the lookup and update operations for states are respectively dual to the throw and catch operations for exceptions. This symmetry is deeply hidden in the programming languages; in order to unveil it, we start from the monoidal equational logic and we add progressively the logical features which are necessary for dealing with either effect. This approach gives rise to a new point of view on states and exceptions, which bypasses the problems due to the non-algebraicity of handling exceptions. |
|
|
|
|
|
|
|
|
|
|
| 1 : | Laboratoire Jean Kuntzmann (LJK) |
| CNRS : UMR5224 – Université Joseph Fourier - Grenoble I – Université Pierre-Mendès-France - Grenoble II – Institut Polytechnique de Grenoble - Grenoble Institute of Technology | |
| 2 : | Reynaud Consulting (RC) |
| Reynaud Consulting | |
|
|
|
|
|
|
|
|
| Domaine | : | Informatique/Logique en informatique Mathématiques/Catégories et ensembles |
|
|
| Liste des fichiers attachés à ce document : | ||||||||||
|
|
|
| hal-00445873, version 4 | |
| http://hal.archives-ouvertes.fr/hal-00445873 | |
| oai:hal.archives-ouvertes.fr:hal-00445873 | |
| Contributeur : Dominique Duval | |
| Soumis le : Jeudi 19 Mai 2011, 16:05:41 | |
| Dernière modification le : Vendredi 20 Mai 2011, 11:05:27 | |