Feel free to chat with your lab group about any of the following questions, and ask any questions from any previous labs, homeworks, or exams. Some particular things you might still have questions on:
'done
or true
?
local
and set!
,
from last week's lab?
Do they fit the alleged Law of Set! given in class
(that set!
goes and re-writes a define,
so that future placeholder-lookups are affected,
but it doesn't re-evaluate anything else).
set!
.
Is it possible to write any function,
avoiding the use of set!
?
local
had not been provided in the language,
could we write our code slightly differently, to get
most of the bonuses of local
(and, what were those bonuses, again?).
fori=
in class.
How about a loop construct while
,
which might be used like:
(define (trick-or-treat) (while not-enough-goodies? ; ending condition visit-and-filter-out-yuckies ; body empty)) ; initial value (define (no-final-states? states) (empty? (filter final-state? states))) (define (one-trip-later states) ...) (while no-final-states? one-trip-later (list the-start-state))Hmmm, this is actually addressed in the lecture-notes, even thouth it wasn't discussed in lecture.
local
called
let
,
let*
,
letrec
?
local
and shared
?)
Why does Ian seem to like let*
so much,
at least he's slipped several times in lecture and used it.