week1: tweaks
[lambda.git] / week1.mdwn
index 5c8656d..40c8310 100644 (file)
@@ -37,7 +37,7 @@ Declarative/functional vs Imperatival/dynamic models of computation
 
 Many of you, like us, will have grown up thinking the paradigm of computation is a sequence of changes. Let go of that. It will take some care to separate the operative notion of "sequencing" here from other notions close to it, but once that's done, you'll see that languages that have no significant notions of sequencing or changes are Turing complete: they can perform any computation we know how to describe. In itself, that only puts them on equal footing with more mainstream, imperatival programming languages like C and Java and Python, which are also Turing complete. But further, the languages we want you to become familiar with can reasonably be understood to be more fundamental. They embody the elemental building blocks that computer scientists use when reasoning about and designing other languages.
 
-Jim offered the metaphor: think of imperatival languages, which include "mutation" and "side-effects" (we'll flesh out these keywords as we proceeed), as the pate of computation. We want to teach you about the meat and potatoes, where as it turns out there is no sequencing and no changes. There's just the evaluation or simplification of complex expressions.
+Jim offered the metaphor: think of imperatival languages, which include "mutation" and "side-effects" (we'll flesh out these keywords as we proceeed), as the pâté of computation. We want to teach you about the meat and potatoes, where as it turns out there is no sequencing and no changes. There's just the evaluation or simplification of complex expressions.
 
 Now, when you ask the Scheme interpreter to simplify an expression for you, that's a kind of dynamic interaction between you and the interpreter. You may wonder then why these languages should not also be understood imperatively. The difference is that in a purely declarative or functional language, there are no dynamic effects in the language itself. It's just a static semantic fact about the language that one expression reduces to another. You may have verified that fact through your dynamic interactions with the Scheme interpreter, but that's different from saying that there are dynamic effects in the language itself.
 
@@ -409,7 +409,7 @@ Here's how it looks to say the same thing in various of these languages.
 
        which just means:
 
-               (let [(bar (lambda (x) B))] ... rest of the file or interactive session ...)
+               (let* [(bar (lambda (x) B))] ... rest of the file or interactive session ...)
 
        which just means:
 
@@ -439,9 +439,9 @@ Here's how it looks to say the same thing in various of these languages.
 
        and there's no more change of state going on here than there is in:
 
-       <blockquote>
-       &exists;x. (F x and &exists;x (not (F x)))
-       </blockquote>
+       <pre>
+       <code>&exist;x. (F x and &exist;x (not (F x)))</code>
+       </pre>
 
 
 Some more comparisons between Scheme and OCaml