States and exceptions considered as dual effects

Computer Science – Logic in Computer Science

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Scientific paper

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.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

States and exceptions considered as dual effects does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with States and exceptions considered as dual effects, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and States and exceptions considered as dual effects will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-719133

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.