home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / scheme / 2113 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.9 KB

  1. Path: sparky!uunet!snorkelwacker.mit.edu!mintaka.lcs.mit.edu!ai-lab!zurich.ai.mit.edu!jinx
  2. From: jinx@zurich.ai.mit.edu (Guillermo J. Rozas)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: wots going on here!?
  5. Message-ID: <JINX.92Aug30102323@chamarti.ai.mit.edu>
  6. Date: 30 Aug 92 14:23:23 GMT
  7. References: <JINX.92Aug29101908@chamarti.ai.mit.edu> <17o70sINNi2e@agate.berkeley.edu>
  8.     <JINX.92Aug29223329@chamarti.ai.mit.edu>
  9.     <17piphINNncj@agate.berkeley.edu>
  10. Sender: news@ai.mit.edu
  11. Reply-To: jinx@zurich.ai.mit.edu
  12. Organization: M.I.T. Artificial Intelligence Lab.
  13. Lines: 29
  14. In-reply-to: bh@anarres.CS.Berkeley.EDU's message of 30 Aug 92 04:28:33 GMT
  15.  
  16. In article <17piphINNncj@agate.berkeley.edu> bh@anarres.CS.Berkeley.EDU (Brian Harvey) writes:
  17.  
  18. |   The behavior I want would be *less* verbose:
  19. |
  20. |       > (+ 2 a)
  21. |       Unbound variable: a
  22. |
  23. |       >
  24. |
  25. |   Short and sweet.  It should be possible for an advanced user to ask
  26. |   for pause-on-error behavior in which Scheme would attempt to preserve
  27. |   the environment in which the error occurred, but you should have to
  28. |   ask for it.  (This is how Logo does things.  Errors give a message
  29. |   and return to toplevel, unless you have asked in advance for pause
  30. |   on error.  In that case you get a special prompt and (because of good
  31. |   old dynamic scope -- but that's another argument) *all* of the possibly
  32. |   relevant variables are immediately accessible in the usual way without
  33. |   you having to know anything about environments.)
  34.  
  35. I'm sorry, but I disagree strongly with this view of the world.
  36. It is very close to the C/Unix printing "segmentation violation (core
  37. dumped)" and giving you back a shell prompt.
  38.  
  39. Your answer of having to tweak a flag or whatever is analogous to
  40. saying "recompile and run it under the debugger".
  41.  
  42. Please remember that there are programs that modify global state, and
  43. thus re-running is not an option since they may not fail in the same
  44. way or at all.
  45.