[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception: srfi-35 vs (ice-9 exceptions (was Re: [bug#60802] [PATCH
From: |
Ricardo Wurmus |
Subject: |
Re: Exception: srfi-35 vs (ice-9 exceptions (was Re: [bug#60802] [PATCH v2 1/2] platforms: Raise an exception when no suitable platform is found.) |
Date: |
Mon, 16 Jan 2023 23:35:58 +0100 |
User-agent: |
mu4e 1.8.13; emacs 28.2 |
zimoun <zimon.toutoune@gmail.com> writes:
> On Mon, 16 Jan 2023 at 12:46, Maxim Cournoyer <maxim.cournoyer@gmail.com>
> wrote:
>
>>> So far the we use (srfi srfi-35) exclusively to define condition types;
>>> I think we should do the same here, for consistency.
>>
>> Could we instead start migrating away from srfi-35 to (ice-9
>> exceptions), which is the new native way to use exceptions in Guile?
[…]
>> think it'd be nicer to use it in the future, to avoid newcomers being
>> confusing about the 3 or 4 ways to manage exceptions in Guile
>> (recommended read on the topic:
>> https://vijaymarupudi.com/blog/2022-02-13-error-handling-in-guile.html).
>
> In Guile maybe several but only one in Guix: (srfi srfi-35). :-)
With the introduction of (ice-9 exceptions), SRFI 35 has also been
rebased on top of it.[1]
Personally, I’d rather stay with the well-established interface provided
by SRFI 35. It seems like needless churn to rewrite all current
exception handling to drop down one layer onto Guile-specific
infrastructure.
--
Ricardo
[1]: https://lists.gnu.org/archive/html/guile-commits/2019-11/msg00002.html