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

The import forms miss to match the keywords only, prefix, rename, ... by binding #783

Open
mnieper opened this issue Dec 15, 2023 · 0 comments

Comments

@mnieper
Copy link
Contributor

mnieper commented Dec 15, 2023

Chez Scheme defines an import form for local imports (see sections 10.4 and 11.6 in the CSUG). It defines auxiliary keywords like only, except or rename for use with import (see section 11.5 and https://github.com/cisco/ChezScheme/blob/main/s/syntax.ss#L7564). However, these bindings are useless because the keywords in import forms are matched by symbolic names (see, e.g. https://github.com/cisco/ChezScheme/blob/main/s/syntax.ss#L4150), which is contrary to the intuition and to the rest of the Scheme language where keywords (e.g. else) are matched by binding (i.e. free-identifier=?).

If there is agreement that this should be corrected, I can prepare and send a patch through a pull request.

@mnieper mnieper changed the title The import forms miss to match the keywords only, prefix, rename, ... by binding The import forms miss to match the keywords only, prefix, rename, ... by binding Dec 15, 2023
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