about summary refs log tree commit diff stats
path: root/shell/evaluate.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-17 20:58:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-17 20:58:36 -0700
commit60cab88acec8c655346e5e4396ebfcb3a03b5b23 (patch)
tree2f8e007176061a6446a7968c8f53245f12824440 /shell/evaluate.mu
parent568eb7328f62a4b3986e44b511dcb0fe9bd0fc03 (diff)
downloadmu-60cab88acec8c655346e5e4396ebfcb3a03b5b23.tar.gz
evaluating fns is too similar to its input
When I edit disk images directly, it's easy to forget a pair of parens.
Then the first expression of the body never executes.
Diffstat (limited to 'shell/evaluate.mu')
-rw-r--r--shell/evaluate.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/evaluate.mu b/shell/evaluate.mu
index 8c8bf933..170a1713 100644
--- a/shell/evaluate.mu
+++ b/shell/evaluate.mu
@@ -59,7 +59,7 @@ fn evaluate _in: (addr handle cell), out: (addr handle cell), env-h: (handle cel
   }
   # in-addr is a syntax tree
   $evaluate:anonymous-function: {
-    # trees starting with "fn" are anonymous functions and therefore literals
+    # trees starting with "fn" are anonymous functions
     var expr/esi: (addr cell) <- copy in-addr
     # if its first elem is not "fn", break
     var in-addr/edx: (addr cell) <- copy in-addr