Skip to content

Commit 8ba1576

Browse files
committed
Couple of notes
1 parent a857605 commit 8ba1576

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

chapter1.ss

+9-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@
101101
$undef))
102102

103103
(define ($make-function variables body env)
104-
(lambda values ;; A departure: rather than accepting an argument
105-
;; that is the list of arguments, expect to be
106-
;; applied to a list of arguments. This makes lifting
107-
;; and dropping procedures easier.
104+
(lambda values
105+
;; A departure: rather than accepting an argument that is the list
106+
;; of arguments, expect to be applied to a list of arguments. This
107+
;; makes lifting and dropping procedures easier. However, it
108+
;; means an env (e.g., a dynamic env) cannot be passed as well.
108109
($eprogn body ($extend variables values env))))
109110

110111
(define ($invoke fn values)
@@ -142,6 +143,10 @@
142143
(toplevel)))))
143144
(toplevel))
144145

146+
;; arguably the book does this more nicely by capturing the
147+
;; continuation on invocation of repl and supplying that as the 'end'
148+
;; function.
149+
145150
;; Exercise 1.1
146151

147152
;; Modify to trace function invocations

0 commit comments

Comments
 (0)