Le 02/04/2026 à 08:37, Steve Litt a écrit :
> 4. Error conditions must be handled immediately, but not necessarily
> immediately in the correct manner, because when you're in the zone,
> the last thing you want to do is stop and write error code,
> forgetting your train of thought while you do so. In C assert() is
> perfect for this. In some languages you can write a simple "try:" or
> equivalent to just abort on exception, and worry about complete
> handling later.
This is also why languages with true exception handling are
superior: the programmer marks the exceptional cases by just raising
exceptions, does not propagate them through the normal flow, and treats
them in a dedicated flow.
-- Didier