[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: acl, copy-file: First step towards more consistent function names
From: |
Collin Funk |
Subject: |
Re: acl, copy-file: First step towards more consistent function names |
Date: |
Sun, 25 Aug 2024 01:36:21 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Pádraig,
Pádraig Brady <P@draigBrady.com> writes:
> I always thought the x...() variants indicate they might eXit().
>
> Are there any other x...() variants that just output a diagnostic,
> and don't exit()?
Originally I felt the same way. Since I generally think about xmalloc,
xstrdup, which 99% of the time just exit or abort on error.
But there is already stuff like xstrtol and xsize that don't exit or
emit a diagnostic message. They just make it easier to catch errors;
which always annoys me with the regular strtol :)
Collin