-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Simplify function definitions #3689
Simplify function definitions #3689
Conversation
This is an automated change generated by [`resyntax`](https://github.com/jackfirth/resyntax). This change simplifies function definitions using shortcuts for `define` forms whose right-hand-side is either a lambda expression or a `case-lambda` expression equivalent to a function with a default argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broadly looks good to me but it changes a lot of code so I'm not sure who the right person to review it is.
(cons (format " ~e" | ||
(car args)) | ||
(loop (cdr args))))))))))) | ||
(define (((make-not-available id)) . args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be less clear in the new version -- maybe 0-argument functions should be a special case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense. Opened jackfirth/resyntax#61 for this.
I could split it up into separate pull requests, would that be easier? |
I looked through all of the contract files and the changes seem good to me. I didn't check that the test suites still pass (although it seems very likely they would). If someone has it installed, running |
The contract tests run in the CI so we can see that they pass. |
Closing this pull request for a few reasons:
|
This is an automated change generated by
resyntax
.This change simplifies function definitions using shortcuts for
define
forms whose right-hand-side is either a lambda expression or acase-lambda
expression equivalent to a function with a default argument.