X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=week1.mdwn;h=0207f0ceae92b3e0eafc4513fa279d8007de294e;hp=fa1abce41be7d0266b907aaa981967797b4991a0;hb=6ca041c08f7d5eccc1550af16de405c66fb23139;hpb=f6bd2e9e39e9ed2f0b752258a5562492da2f0159
diff --git a/week1.mdwn b/week1.mdwn
index fa1abce4..0207f0ce 100644
--- a/week1.mdwn
+++ b/week1.mdwn
@@ -57,8 +57,9 @@ We'll tend to write (λa M)
as just `(\a M)`, so we don't hav
Application: (M N)
-Some authors reserve the term "term" for just variables and abstracts. We won't *participate* in that convention; we'll probably just say "term" and "expression" indiscriminately for expressions of any of these three forms.
+Some authors reserve the term "term" for just variables and abstracts. We'll probably just say "term" and "expression" indiscriminately for expressions of any of these three forms.
+
+true and true = true
+true and true = true
+true and * = *
+true and false = false
+* and true = *
+* and * = *
+* and false = *
+false and true = false
+false and * = false
+false and false = false
+
+
+And then we'd notice that `* and false` has a different intepretation than `false and *`. (The same phenomenon is already present with the material conditional in bivalent logics; but seeing that a non-symmetric semantics for `and` is available even for functional languages is instructive.)
Another way in which order can matter that's present even in functional languages is that the interpretation of some complex expressions can depend on the order in which sub-expressions are evaluated. Evaluated in one order, the computations might never terminate (and so semantically we interpret them as having "the bottom value"---we'll discuss this). Evaluated in another order, they might have a perfectly mundane value. Here's an example, though we'll reserve discussion of it until later:
@@ -487,7 +493,7 @@ Here's how it looks to say the same thing in various of these languages.
(let ((two 2))
(+ three two)))
- Scheme also has a simple `let` (without the `*`), and it permits you to group several variable bindings together in a single `let`- or `let*`-statement, like this:
+ Scheme also has a simple `let` (without the ` *`), and it permits you to group several variable bindings together in a single `let`- or `let*`-statement, like this:
(let* ((three 3) (two 2))
(+ three two))
@@ -789,6 +795,8 @@ contributes no more to a larger context in which it's embedded than C does. This
We'll discuss this more as the seminar proceeds.
+
+
1. Declarative vs imperatival models of computation.
2. Variety of ways in which "order can matter."
3. Variety of meanings for "dynamic."