Exposing the supported SRFIs trough (features)

Issue #296 closed
Retropikzel created an issue

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)

  1. Takashi Kato repo owner

    Thank you for the proposal.

    I need to clarify 2 things;

    1. Can you not use library clause of cond-expand?

      e.g

      scheme (cond-expand ((library (srfi 1)) …) (else …)) 2. If not, how should the feature identifiers look like?

  2. Retropikzel reporter
    1. 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.

  3. Takashi Kato repo owner

    No problem, you’re always welcome to raise issues or proposals.

    I’ll close the ticket as you found a portable solution.

  4. Log in to comment