On Sep 18, 2014, at 2:37 PM, Jay Carlson <
nop@nop.com> wrote:
On Sep 18, 2014 2:23 PM, "Tim Hill" <drtimhill@gmail.com> wrote:
I think you and William Ahern may have a fight scheduled over ENOMEM.
The resolution to the argument is probably to define how far out "bail out" goes. Probably not "while(1) { kill(getpid(), SIGKILL); }”
Absolutely agree.
Since many operations fail on nil, returning nil from a function where the value will be used can force the caller to either handle the exceptional or die. Consider:
f = io.open("/tmp/a", "w")
f:write(s)
Agreed, but I would argue the issue here is not checking the return value from io.open() when called. As I said, this is a huge subject, and one that has not been solved (imho) in ANY computer language to date.
—Tim