Re: [RFC PATCH 03/13] usb: remove the usage of the list iterator after the loop
From: Miguel Ojeda
Date: Sun Feb 27 2022 - 13:09:38 EST
On Sun, Feb 27, 2022 at 1:09 PM Segher Boessenkool
<segher@xxxxxxxxxxxxxxxxxxx> wrote:
>
> How will you define dividing by zero so that its behaviour is reasonable
> for every program, for example?
The solution is to let the developer specify what they need to happen.
That choice should include the unsafe possibility (i.e. unchecked),
because sometimes that is precisely what we need.
> Invoking an error handler at runtime
> has most of the same unwanted effects, except is is never silent. You
It may not be what it is needed in some cases (thus the necessity to
be able to choose), but at least one can predict what happens and
different compilers, versions, flags, inputs, etc. would agree.
Cheers,
Miguel