Absolutely agree.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); }”
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)