Return-Path: <kfoury@cs.bu.edu> Received: from cs.bu.edu (cs [128.197.12.2]) by cs3.bu.edu (8.12.11/8.12.11) with ESMTP id i8O1eD5S010343; Thu, 23 Sep 2004 21:40:13 -0400 Received: from cs.bu.edu (h000c41248e2b.ne.client2.attbi.com [24.34.20.189]) (authenticated bits=0) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id i8O1eD8p022420; Thu, 23 Sep 2004 21:40:13 -0400 (EDT) Message-ID: <41537B01.1030205@cs.bu.edu> Date: Thu, 23 Sep 2004 21:40:17 -0400 From: Assaf Kfoury <kfoury@cs.bu.edu> Organization: Boston University User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: en To: Kanishka Gupta <kanishka@cs.bu.edu> CC: cs520@cs.bu.edu Subject: Re: question about Exercise 5.3.7 References: <Pine.SOL.4.20.0409232033290.20751-100000@csa.bu.edu> In-Reply-To: <Pine.SOL.4.20.0409232033290.20751-100000@csa.bu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-HitLevel: xx X-Spam-DCC: meer: cs3.bu.edu 1086; Body=19 Fuz1=19 Fuz2=19 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cs3.bu.edu X-Spam-Level: ** X-Spam-Status: No, hits=2.4 required=10.0 tests=AWL,RCVD_IN_DSBL, RCVD_IN_NJABL_PROXY autolearn=no version=2.64 X-Spam-Pyzor: Reported 0 times. Status: RO X-Mozilla-Status: 8011 X-Mozilla-Status2: 00000000 X-UIDL: 411f69ec00000b9b
Kanishka Gupta wrote:
>Prof. Kfoury,
>
>I have a question on Excercise 5.3.7. Whwn chaging the semantics to handle
>the run-time errors in lambdaNB, do we declare a run-time error whenever
>there is some mismatch (for example a lambda term in the guard of an
>if-then-else statement) OR do you want us to look further(for example if
>the lambda term in the guard of the if-then-else is the church boolean
>fls then execute the else part of the statement). The second part seems
>extremely hard to imlement and I am also not sure whether it is even
>correct to do soemething like this.
>
>Thanks.
>Kanishka
>
>
>
My recommendation: Before anything else, read Exercise 3.5.16 and its
solution in the book. Then, you will define the call-by-value
semantics, which in particular means you do not evaluate within the
scope of a lambda binding. The expression should evaluate to "wrong"
whenever there is a mismatch.
Assaf
This archive was generated by hypermail 2b29 : Fri Nov 19 2004 - 17:00:43 EST