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

Define variadic functions #28

Closed
hrs opened this issue Sep 25, 2015 · 2 comments
Closed

Define variadic functions #28

hrs opened this issue Sep 25, 2015 · 2 comments

Comments

@hrs
Copy link
Owner

hrs commented Sep 25, 2015

Standard Scheme uses a dot notation to define functions that take a varying number of arguments:

(define (my-function (a b . the-rest)
  ...)

We'll need to tell the parser to accept dots and modify lambda and define to handle this.

@hrs
Copy link
Owner Author

hrs commented Sep 25, 2015

A side benefit of this is that we'll be able to implement list in the standard library in terms of cons, if we want to.

@hrs
Copy link
Owner Author

hrs commented Sep 25, 2015

Fixed in 414f6f8.

@hrs hrs closed this as completed Sep 25, 2015
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