-
Notifications
You must be signed in to change notification settings - Fork 3
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
Nils M Holm code #34
Comments
Great. Does he have a specific wish for what we should do with the code? Some of those files are quite big and require non-standard libraries, |
We should also go over the Schematics cookbook for the same purpose. The only question is who does all the work :) Maybe we could split the work so each of us could try to send PRs for a few procedures per week. It would be a great help if Nils could prepare some of the code, or at least pick which files would be good for the cookbook. |
I'm looking at the code, there are some small examples, we can use those: http://t3x.org/s9fes/adjoin.scm.html I would leave the big ones maybe except for the amb operator: |
But there is problematic Will check only small functions and create a PR with those files. |
|
Maybe we can find it elsewhere or reimplement it with |
The old book Teach Yourself Scheme in Fixnum Days explains and implements |
If you can rewrite it using |
It seems that Chicken Scheme doesn't support any way of nesting ellipsis in I've tested this: Both works in my Scheme implementation, the code is from my unit tests:
|
But it seems both works in Guile. |
These work in Chibi-Scheme, Chicken, Gauche, Kawa, Sagittarius: (define-syntax funcall
(syntax-rules ellipsis ()
((_ name args ellipsis) (name args ellipsis))))
(display (funcall list 1 2 3))
(newline) (define-syntax be-like-begin
(syntax-rules ()
((be-like-begin name)
(define-syntax name
(syntax-rules ellipsis ()
((name expr ellipsis)
(begin expr ellipsis)))))))
(be-like-begin sequence)
(display (sequence 1 2 3 4))
(newline) |
|
Alternatively you could use |
From Nils:
|
Just got a message from Nils M Holm. He did few books about Scheme and pointed to:
http://t3x.org/s9fes/lib.html and http://t3x.org/s9fes/contrib.html
the code is from the book "Scheme 9 from Empty Space" all examples are in the public domain.
The text was updated successfully, but these errors were encountered: