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
assert:s at the beggining of methods should be replaced by assume:s, see an earlier discussion on slack:
There is assert:, and there is assume:. They are confusingly similar, just like vectors and differential forms are confusingly similar, in fact we are looking at the same mathematical phenomenon of contravariance. When I am in a function, say f(x), x>10, and I say assert(x+1 > 11), it is my (well, f's) responsibility to ensure that the assert typechecks.
But assume works "backwards", "demonic", "precondition", and "it's my caller's fault if not".
For time being, assume: can be implemented by means of assert:.
The text was updated successfully, but these errors were encountered:
assert:
s at the beggining of methods should be replaced byassume:
s, see an earlier discussion on slack:For time being,
assume:
can be implemented by means ofassert:
.The text was updated successfully, but these errors were encountered: