The main benefit is that Day is symmetric, so all coeffects commute. You wouldn't be able to write something the the smash function when working with extensible effects, for example.
So with effects the order of effect interpretation is important (for example the order in which we combine state and exceptions is important). But, with coeffects the order of coeffect interpretation does not matter?
View all comments
Show parent comment
1
u/paf31 Feb 15 '18
The main benefit is that Day is symmetric, so all coeffects commute. You wouldn't be able to write something the the
smashfunction when working with extensible effects, for example.