[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expression
From: |
No Itisnt |
Subject: |
Re: expression |
Date: |
Wed, 23 Jun 2010 18:14:35 -0500 |
On Wed, Jun 23, 2010 at 4:09 PM, Michael Lucy <address@hidden> 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.