Exposing the supported SRFIs trough (features)
Issue #296
closed
These Scheme implementations have supported SRFIs listed on the (features) list.
- Gauche
- Guile
- Kawa
- Stklos
- Gambit
- Chicken
Would it be possible to expose them in Sagittarius too?
It would help when writing portable code that might depend on SRFI, but fall back on (mayber slower) portable implementation.
Comments (4)
-
repo owner -
reporter - The libary form works, that should be enough. Thank you!
I should have read the R7RS more carefully, sorry about wasting your time.
This issue can be closed.
I will still answer the question 2:
Listed implementations work with:
(cond-expand (srfi-N ...) (else ..))
And that is how I expected Sagittarius to behave too.
-
repo owner No problem, you’re always welcome to raise issues or proposals.
I’ll close the ticket as you found a portable solution.
-
repo owner - changed status to closed
Closed as it’s not needed to write portable code.
- Log in to comment
Thank you for the proposal.
I need to clarify 2 things;
Can you not use
library
clause ofcond-expand
?e.g
scheme (cond-expand ((library (srfi 1)) …) (else …))
2. If not, how should the feature identifiers look like?