[r6rs-discuss] Script exit code
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Mon Sep 18 14:56:36 EDT 2006
7.1.2.
I don't like the way scripts specify the exit code, by taking the
value of the last expression.
The exit code is rarely interesting. When it's different than the
default, often this is determined at some other place than the end of
the script: namely in the place which has detected a problem and wants
to abort the script. It's easy to forget the exit code.
I would prefer to have a standard condition which is intended to exit
the program, and which carries the exit code. A standard function with
an optional exit code parameter just raises that condition.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the r6rs-discuss
mailing list