On 8/02/2025 0:08, Tomas Volf wrote:
Adding &system-error is probably not an endeavor I currently have time
for, but it sounds like something that that would be useful. 🙂
You can also use 'guard' _without_ adding &system-error. There is a
particular condition type for representing otherwise
Maxime Devos via General Guile related discussions
writes:
> On 5/02/2025 1:38, Tomas Volf wrote:
>> Hello,
>>
>> I would like to dispatch exceptions based on errno, in particular to
>> return #f on ENOENT, and re-raise the exception otherwise. My current
>> (working as far as I can tell) soluti
On 5/02/2025 1:38, Tomas Volf wrote:
Hello,
I would like to dispatch exceptions based on errno, in particular to
return #f on ENOENT, and re-raise the exception otherwise. My current
(working as far as I can tell) solution is:
(with-exception-handler
(λ (exc)
(and (not (
Hello,
I would like to dispatch exceptions based on errno, in particular to
return #f on ENOENT, and re-raise the exception otherwise. My current
(working as far as I can tell) solution is:
--8<---cut here---start->8---
(with-exception-handler
(λ (exc