From: Daniel Hartwig <mandyke@gmail.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>, Mark H Weaver <mhw@netris.org>
Subject: Re: Special variables to relax boxing
Date: Sat, 23 Mar 2013 08:18:41 +0800 [thread overview]
Message-ID: <CAN3veRfRqd53iMT-_8c6gU1CSdNvqGSEFFW=oTR+yF6cT2oq+g@mail.gmail.com> (raw)
In-Reply-To: <2174121.eLPOcnxQL8@warperdoze>
On 23 March 2013 06:33, Stefan Israelsson Tampe <stefan.itampe@gmail.com> 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!’?
next prev parent reply other threads:[~2013-03-23 0:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 22:05 Special variables to relax boxing Stefan Israelsson Tampe
2013-03-21 6:00 ` Mark H Weaver
2013-03-21 9:35 ` Stefan Israelsson Tampe
2013-03-21 15:35 ` Noah Lavine
2013-03-21 16:28 ` Stefan Israelsson Tampe
2013-03-21 19:03 ` Mark H Weaver
2013-03-21 20:15 ` Stefan Israelsson Tampe
2013-03-21 21:11 ` Noah Lavine
2013-03-22 22:33 ` Stefan Israelsson Tampe
2013-03-23 0:18 ` Daniel Hartwig [this message]
2013-03-23 15:34 ` Stefan Israelsson Tampe
2013-03-23 18:31 ` Stefan Israelsson Tampe
-- strict thread matches above, loose matches on Subject: below --
2013-03-23 10:30 Stefan Israelsson Tampe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN3veRfRqd53iMT-_8c6gU1CSdNvqGSEFFW=oTR+yF6cT2oq+g@mail.gmail.com' \
--to=mandyke@gmail.com \
--cc=guile-devel@gnu.org \
--cc=mhw@netris.org \
--cc=stefan.itampe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).