On 19/02/17 04:48, ToddAndMargo wrote:
> "die" is not all that useful, as it always exits
> with a "1". With "exit", you can set the exit code.
that's leaving out a whole lot of context, though. "die" is a quick way
to throw an exception. If an exception reaches the outermost part of
your program without getting handled by something, the program will
print the exception message (i.e. what its .message method generates)
and a stack trace of where the exception was thrown.
However, using "die" in the mainline of your program is "not all that
useful" as you correctly point out.