tweak
authorjim <jim@web>
Sat, 21 Mar 2015 12:58:36 +0000 (08:58 -0400)
committerLinux User <ikiwiki@localhost.members.linode.com>
Sat, 21 Mar 2015 12:58:36 +0000 (08:58 -0400)
exercises/assignment5_answers.mdwn

index 9c30527..b6d2dab 100644 (file)
@@ -768,4 +768,4 @@ and that `bool` is any boolean expression.  Then we can try the following:
 
         match b with true -> y () | false -> n ()
 
 
         match b with true -> y () | false -> n ()
 
-    that would arguably still be relying on the special evaluation order properties of OCaml's native `match`. You'd be assuming that `n ()` wouldn't be evaluated in the computation that ends up selecting the other branch. That is correct, but to avoid making that assumption, you should instead first select the `y` or `n` result, _and then afterwards_ force the result. That's what we do in the above answer.
+    that would arguably still be relying on the special evaluation order properties of OCaml's native `match`. You'd be assuming that `n ()` wouldn't be evaluated in the computation that ends up selecting the other branch. Your assumption would be correct, but to avoid making that assumption, you should instead first select the `y` or `n` result, _and then afterwards_ force the result. That's what we do in the above answer.