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

Chez parameters are not SRFI-39 compatible #20

Open
weinholt opened this issue Mar 20, 2019 · 4 comments
Open

Chez parameters are not SRFI-39 compatible #20

weinholt opened this issue Mar 20, 2019 · 4 comments

Comments

@weinholt
Copy link
Contributor

Chez Scheme's parameters are not quite compatible with SRFI-39, as explained by @akeep here: cisco/ChezScheme#409 (comment)

However, chez-srfi uses them directly:

(library (srfi :39 parameters)
  (export make-parameter 
          parameterize)
  (import (only (chezscheme) make-parameter parameterize)))
@arcfide
Copy link
Owner

arcfide commented Mar 23, 2019

Okay, it looks like the best thing to do is to remove the special code for Chez Scheme from the library. Can you confirm that this would work for you?

@weinholt
Copy link
Contributor Author

The implementation in %3a39/parameters.sls doesn't look like it's SRFI-39 either. It's from Ikarus and has the same semantics as Chez Scheme. I'm testing them with the code from the first comment in the linked discussion.

The reference implementation of SRFI-39 works and behaves as it should. I guess the issue with using it is that it might not interact properly with an implementation's threading system. But SRFI-39 happily leaves that unspecified anyway.

@arcfide
Copy link
Owner

arcfide commented Mar 25, 2019

I see. Well, if you have something that works, I'd be happy to take in a pull request! It might take me a bit long to get to this and do it myself.

@mnieper
Copy link

mnieper commented Aug 2, 2021

The implementation in %3a39/parameters.sls doesn't look like it's SRFI-39 either. It's from Ikarus and has the same semantics as Chez Scheme. I'm testing them with the code from the first comment in the linked discussion.

The reference implementation of SRFI-39 works and behaves as it should. I guess the issue with using it is that it might not interact properly with an implementation's threading system. But SRFI-39 happily leaves that unspecified anyway.

The problem are things like the current-input-port, which have to be supported by the implementation of parameterize.

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

3 participants