guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Missing" libraries/concepts found in other languages/ecosystems?


From: Chris Vine
Subject: Re: "Missing" libraries/concepts found in other languages/ecosystems?
Date: Sun, 12 Jul 2020 20:32:55 +0100

On Sun, 12 Jul 2020 20:14:23 +0100
Chris Vine <vine35792468@gmail.com> wrote:
[snip]
> Secondly, if the handler returns and #:unwind? is set to #f then
> raise-continuable will return with the value returned by the handler.
> So this:
> 
>   (with-exception-handler
>       (lambda (x) (+ x 3))
>     (lambda () (+ (raise-continuable 10) 6)))

Ah I see you are using (ice-9 exceptions).  Better be consistent with this:

  (with-exception-handler
      (lambda (x) (+ x 3))
    (lambda () (+ (raise-exception 10 #:continuable? #t) 6))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]