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

n-ary lambdas / rest args #41

Closed
4 tasks done
eigenhombre opened this issue Aug 6, 2022 · 1 comment
Closed
4 tasks done

n-ary lambdas / rest args #41

eigenhombre opened this issue Aug 6, 2022 · 1 comment

Comments

@eigenhombre
Copy link
Owner

eigenhombre commented Aug 6, 2022

I've gotten pretty far without 'em,

But we're gonna want 'em.

  • Support dotted pairs - parsing, cons/car/cdr, evaluation, printing, ...
  • Adapt dotted pairs to lambdas, e.g. (lambda (x . xs) (list x xs))
  • Implement rest-only signature, e.g. (lambda (() . xs) (len xs))
  • Implement defn similarly to the above lambda exceptions
@eigenhombre
Copy link
Owner Author

I think this might be a good next ticket before tackling macros. Macros with n-ary bodys will want them, among others.

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