You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of these have safety implications, but there are a number of coherence constraints ideal for Choose:
We don't want types like Choose<A, Choose<B, Finally<A>>> to be expressible. That is, there exists noChooser<A, B> such that Chooser<A, B>: Chooser<S> and B: Chooser<S>.
We should ensure that Choose<P, Q> only allows Choose and Finally to exist as Q.
Finally should not exist outside of Choose, if possible.
As a bonus, it may not be necessary to use Finally at all, but I am doubtful.
The text was updated successfully, but these errors were encountered:
ebfull
changed the title
Well-formedness for Choose
Coherence constraints for Choose
Oct 23, 2015
None of these have safety implications, but there are a number of coherence constraints ideal for
Choose
:Choose<A, Choose<B, Finally<A>>>
to be expressible. That is, there exists noChooser<A, B>
such thatChooser<A, B>: Chooser<S>
andB: Chooser<S>
.Choose<P, Q>
only allowsChoose
andFinally
to exist asQ
.Choose
, if possible.As a bonus, it may not be necessary to use
Finally
at all, but I am doubtful.The text was updated successfully, but these errors were encountered: