home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!zurich.ai.mit.edu!jinx
- From: jinx@zurich.ai.mit.edu (Guillermo J. Rozas)
- Newsgroups: comp.lang.scheme
- Subject: Re: wots going on here!?
- Message-ID: <JINX.92Sep1033012@chamarti.ai.mit.edu>
- Date: 1 Sep 92 07:30:12 GMT
- References: <17timvINN7b8@agate.berkeley.edu> <17tn1uINNkij@early-bird.think.com>
- <JINX.92Aug31170432@chamarti.ai.mit.edu>
- <17ur1oINNem6@agate.berkeley.edu>
- Sender: news@ai.mit.edu
- Reply-To: jinx@zurich.ai.mit.edu
- Organization: M.I.T. Artificial Intelligence Lab.
- Lines: 34
- In-reply-to: bh@anarres.CS.Berkeley.EDU's message of 1 Sep 92 04:20:08 GMT
-
- In article <17ur1oINNem6@agate.berkeley.edu> bh@anarres.CS.Berkeley.EDU (Brian Harvey) writes:
-
- | I think it would be a major improvement to say "not a procedure" or
- | "not a function" [I am not religious about this] instead of
- | "not applicable."
-
- I agree.
-
- | But the *really* right error message would be something like
- | "IF didn't return a value" (or COND didn't, or whatever it is).
- | The fact that the non-value was used in function position isn't
- | really what's wrong in this situation.
-
- Except that you can't really expect the system to do that.
- Both the COND and IF are legal (and the procedures in which they
- appear), although probably not what the user meant.
-
- A possibility would be to have multiple "unspecified" objects, one for
- IF, one for COND, etc., so the object itself would print something like
-
- "#[unspecified IF alternative]"
-
- which would probably make the error easier to track.
- However, it would probably still be confusing to a beginner.
-
- | Btw, is "read-eval-print level 1" the level I was at before the
- | error? Putting it another way, what level am I at after getting
- | this message? That's another unclear thing about the message.
- | I think it would be better if that option were called either
- | "evaluate expressions with local variables available" or else
- | "cancel this computation, return to toplevel" -- whichever it means.
-
- I did not show the prompt (or the Emacs/Edwin mode line).
- They always display the level number, so you would have seen the 1.
-