Re: Couple of questions regarding handling exceptions

2025-02-08 Thread Maxime Devos
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

Re: Couple of questions regarding handling exceptions

2025-02-07 Thread Tomas Volf
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

Re: Couple of questions regarding handling exceptions

2025-02-05 Thread Maxime Devos via General Guile related discussions
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 (

Couple of questions regarding handling exceptions

2025-02-04 Thread Tomas Volf
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