guile-devel
[Top][All Lists]
Advanced

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

Re: Special variables to relax boxing


From: Daniel Hartwig
Subject: Re: Special variables to relax boxing
Date: Sat, 23 Mar 2013 08:18:41 +0800

On 23 March 2013 06:33, Stefan Israelsson Tampe <address@hidden> wrote:
> (define (f x)
>   (let ((s 0))
>     (with-special-soft ((s 0))
>        (let lp ((i 0))
>           (cond
>              ((>= i 100) s)
>              ((= i 50) (abort-to-prompt 'tag) (lp (+ i 1)))
>              (else (set! s (+ s i)) (lp (+ i 1))))))))

Is this typical of your intended use case?  Why can S not be part of
the named-let and avoid the use of ‘set!’?



reply via email to

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