From: No Itisnt <theseaisinhere@gmail.com>
To: Michael Lucy <MichaelGLucy@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: expression
Date: Wed, 23 Jun 2010 18:14:35 -0500 [thread overview]
Message-ID: <AANLkTintoGGkvt_Wuz_c3FLKcPzUYYuT-pUmPMCHXhTy@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimRTEQhq1umxlzDizFxkgrSXyRtqj2zi34_iqFk@mail.gmail.com>
On Wed, Jun 23, 2010 at 4:09 PM, Michael Lucy <MichaelGLucy@gmail.com> wrote:
> Hey,
>
> Is there any scheme expression that will just get ignored when the
> scheme code is compiled?
>
> I'm generating some code with a function like:
>
> (define (gen-update-ab updatea updateb)
> `(begin
> ,(if updatea `(set! a (+ a 1)) `(donothing))
> ,(if updateb `(set! b (+ b 1)) `(donothing))))
>
> And ideally I could replace the donothing function with something that
> will get discarded during compilation.
I'm not sure if Guile will discard the result, but I think
*unspecified* is the idiomatic value for those sorts of situations.
next prev parent reply other threads:[~2010-06-23 23:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 21:09 expression Michael Lucy
2010-06-23 23:14 ` No Itisnt [this message]
2010-06-23 23:23 ` expression Michael Lucy
2010-06-24 13:01 ` expression Andy Wingo
2010-06-24 6:55 ` expression Ken Raeburn
2010-06-24 7:27 ` expression Thien-Thi Nguyen
2010-06-24 7:52 ` expression Michael Lucy
2010-06-24 13:05 ` expression Andy Wingo
2010-06-24 13:03 ` expression Andy Wingo
2010-06-24 14:40 ` expression Ken Raeburn
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=AANLkTintoGGkvt_Wuz_c3FLKcPzUYYuT-pUmPMCHXhTy@mail.gmail.com \
--to=theseaisinhere@gmail.com \
--cc=MichaelGLucy@gmail.com \
--cc=guile-devel@gnu.org \
/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).