[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introducing `cond-feature'
From: |
Kevin Ryde |
Subject: |
Re: Introducing `cond-feature' |
Date: |
Wed, 06 Dec 2006 10:46:55 +1100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
>
> I'm glad to introduce `cond-feature', a macro that does the exact same
> thing as `cond-expand' but for Guile's built-in features:
Perhaps cond-expand could be extended. Maybe `guile-foo' feature to
mean one of guile's features list.
> (if (provided? 'stuff)
> (do-stuff)
That should be ok though. A good compiler will want to recognise and
optimize things like that, and drop resulting dead code.
(Gratuitous plug: in my guile-lint I look for a few forms like that,
to suppress warnings in code that's intended for particular guile or
module versions.)
- Introducing `cond-feature', Ludovic Courtès, 2006/12/05
- Re: Introducing `cond-feature',
Kevin Ryde <=
- Re: Introducing `cond-feature', Ludovic Courtès, 2006/12/06
- Re: Introducing `cond-feature', Kevin Ryde, 2006/12/08
- Re: Introducing `cond-feature', Kevin Ryde, 2006/12/11
- Re: Introducing `cond-feature', Ludovic Courtès, 2006/12/12
- Re: Introducing `cond-feature', Kevin Ryde, 2006/12/13
- Re: Introducing `cond-feature', Ludovic Courtès, 2006/12/14
- Re: Introducing `cond-feature', Rob Browning, 2006/12/15
Re: Introducing `cond-feature', Rob Browning, 2006/12/05