[r6rs-discuss] Script exit code

From: Michael Sperber <sperber>
Date: Thu Oct 5 08:37:04 2006

I am posting this as an individual member of the Scheme
community. I am not speaking for the R6RS editors.

Marcin 'Qrczak' Kowalczyk <qrczak_at_knm.org.pl> writes:

> I think the exit-code condition doesn't necessarily mean that the
> script is unsuccessful. It may be used as a mere non-local exit
> when the exit code is something innocent like 0.
>
> For example a parser of script parameters might exit this way when it
> recognizes --help or --version, to leave the normal control flow for
> the normal usage of the program.

For that purpose, Scheme has call/cc. The exception mechanism is for
exceptional situations.

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Thu Oct 05 2006 - 08:36:42 UTC

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