|
I'm a little confused about a few things in this week's homework; I'm terribly sorry if the below makes little sense: First of all, regarding exercise 1, I'm having a hard time figuring out how static and dynamic scope are supposed to change the behavior of the supplied function. Specifically, I don't get it because it seems to me that evaluation order is all that should matter. So when I see a lambda I evaluate the second argument (the function), which in all of the lambdas I see is not actually a function of the formal parameter, so I pretty much ignore the formal parameter. So if there is no global scope and in each lambda the formal parameters are not used, then I don't quite see how dynamic vs lexical scope is going to matter. Second, I'm a little lost with regard to the representation of a binary tree. For lists, inductively I have:
(a) /\
a nil
(a b) /\
a /\
b nil
|
But if it doesn't end with a nil... by Gregory Kettler, 2001, Nov 18
Re: Tree Representation by Avi Schwab, 2001, Nov 18
trees vs. lists by Roni Choudhury, 2001, Nov 18
dynamic vs. static by Roni Choudhury, 2001, Nov 18
I think that's it... by Matthew Stover, 2001, Nov 18
order of building lamda and subbing reals for fmls (Terry (Sotiria) Lampoudi), 2001, Nov 18
My Evaluator by Mamun Tanveer, 2001, Nov 18
It's the order of substitution vs. application of the function by Mike O'Donnell, 2001, Nov 19
Right, but remember the recursion stack by Mike O'Donnell, 2001, Nov 19
Lists subsetneq Trees by Mike O'Donnell, 2001, Nov 19
to: