Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRFI 0 vs. R7RS cond-expand behavior incompatibility #58

Open
a2379 opened this issue Jan 14, 2025 · 0 comments
Open

SRFI 0 vs. R7RS cond-expand behavior incompatibility #58

a2379 opened this issue Jan 14, 2025 · 0 comments

Comments

@a2379
Copy link
Contributor

a2379 commented Jan 14, 2025

SRFI 0 says that "the specification requires a macro-expansion time error to be signalled if a cond-expand form has no fulfilled clause".

However, R7RS-small says that "If none of the feature requirements evaluate to #t, then if there is an else clause, its expressions are included. Otherwise, the behavior of the cond-expand is unspecified."

Should we mark an implementation as supporting SRFI 0 if it does not throw an error? Some implementations like Chibi evaluate to #t if no clauses match.

On the other hand, I'm not sure if this is the right place to document compliance with the SRFI spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant