[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: |
Ludovic Courtès |
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: |
Tue, 17 Jan 2023 17:35:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi!
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> There are also many old-school catch/throw references too, so that makes
> it two! These can technically be handled using the new style mechanism
> too
Well, yes and no. The migration to from key+args (what ‘catch’ deals
with) to exception objects (à la SRFI-35 or (ice-9 exceptions)) was
started in 3.0, but it’s not “complete” in the sense that internally
key+args is still what’s used in the vast majority of cases. Quoth
‘NEWS’:
Guile's situation is transitional. Most exceptions are still signalled
via `throw'. These will probably migrate over time to
`raise-exception', while preserving compatibility of course.
So I guess the first task is to work on it in Guile proper.
I do hope we can eventually do away with ‘catch’ in most parts of the
code and stick to SRFI-34 ‘guard’.
Thanks,
Ludo’.