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

Enable calls with commitments #1159

Closed
arthurpaulino opened this issue Feb 20, 2024 · 2 comments · Fixed by #1163
Closed

Enable calls with commitments #1159

arthurpaulino opened this issue Feb 20, 2024 · 2 comments · Fixed by #1163

Comments

@arthurpaulino
Copy link
Member

Besides Fun, Comm and Num pointers should also be callable objects as long as opening them reveals a Fun. For example, the three following expressions should reduce to the same value:

  • ((lambda (x) x) nil)
  • ((commit (lambda (x) x)) nil)
  • ((num (commit (lambda (x) x))) nil)
@porcuquine
Copy link
Collaborator

Yes

@arthurpaulino
Copy link
Member Author

@porcuquine I just realized that expressions like (1 2 3) will error in a non provable way because of the failure to open the commitment on the head. Let me know if we should follow the plan to include nums or if we should only support comms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants