Pithy summary for comonad. (Where a monad is a 'type for impure computation')

时光怂恿深爱的人放手 提交于 2019-12-23 16:43:34

问题


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?


回答1:


"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)



来源:https://stackoverflow.com/questions/17590842/pithy-summary-for-comonad-where-a-monad-is-a-type-for-impure-computation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!