Domanda

In terms of pithy summaries - this description of Monads seems to win - describing them as a 'type for impure computation'.

What is an equivalent pithy (one-sentence) description of a comonad?

È stato utile?

Soluzione

"A type for context-dependent computation"

Alternatively, a better "pithy description" for monads might be a 'type for output impurity', in which case then the pithy description for comonads is a 'type for input impurity'.

(If you are interested in comonads, some more introduction is given in some talks slides of mine: http://www.cl.cam.ac.uk/~dao29/talks/comonads-and-codo-talk-dorchard-2011.pdf)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top