[r6rs-discuss] Script exit code

From: Marcin 'Qrczak' Kowalczyk <qrczak>
Date: Thu Oct 5 17:29:20 2006

"Carl Eastlund" <cce_at_ccs.neu.edu> writes:

>> What is an advantage of call/cc over a condition here?
>
> An exit operation based on exceptions could be caught and potentially
> mishandled by intermediate exception handlers between the call to exit
> and the top level of the program.

The same is true wrt. call/cc: dynamic-wind.

And it's good that it can be caught:
- to free resources which have been associated with a region of code,
- to reinterpret the context of a library which is not used in a
  standalone script.

> It is also misleading to programmers to treat completion of the
> program as an "exceptional" situation; program termination is a
> normal occurrence and not a problem to be dealt with exceptionally.

Terminology doesn't matter if the semantics is appropriate.

R6RS calls them "conditions" anyway.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak_at_knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Received on Thu Oct 05 2006 - 17:29:12 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC