higepon / mosh

Mosh is a free and fast interpreter for Scheme as specified in the R6RS.
http://mosh.monaos.org/
Other
181 stars 13 forks source link

Exposing the supported SRFIs trough (features) #262

Closed Retropikzel closed 3 months ago

Retropikzel commented 3 months ago

These Scheme implementations have supported SRFIs listed on the (features) list.

Would it be possible to expose them in Mosh too?

It would help when writing portable code that might depend on SRFI, but fall back on (mayber slower) portable implementation.

lassik commented 3 months ago

At https://github.com/ashinn/chibi-scheme/issues/995 I recommended the R7RS idiom (cond-expand ((library (srfi 123)) ...)) instead.

But R6RS does not have cond-expand in the standard at all.

Retropikzel commented 3 months ago

I did not respond to https://github.com/ashinn/chibi-scheme/issues/995 as it's closed but I'll answer here that form "(library..." works fine, I should have read the R7RS more closely instead of assuming from the behavior of the implementatins I listed.