Re: fd_close() conceals errors

From: Paul Jarc <prj_at_case.edu>
Date: Mon, 27 Apr 2020 15:21:08 -0400

"Laurent Bercot" <ska-skaware_at_skarnet.org> wrote:
> If a destructor fails, there is no good decision you can make.

I think that depends on the situation. In many cases, you're right,
there is nothing the program can do about the failure. But in a
program with user interaction, for example, it may make sense to
prompt the user to retry or ignore the failure. It makes sense for
you to recommend ignoring failures, but I don't see what is gained by
denying callers the opportunity to decide for themselves.
Received on Mon Apr 27 2020 - 19:21:08 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC