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

Rethink dummy var. #9

Closed
porcuquine opened this issue Oct 12, 2021 · 3 comments · Fixed by #959
Closed

Rethink dummy var. #9

porcuquine opened this issue Oct 12, 2021 · 3 comments · Fixed by #959

Comments

@porcuquine
Copy link
Contributor

#7 implements a dummy var with name "_" for zero-arg functions. That works fine for now, but if/when _ becomes a legal symbol character (which it probably should), it will be possible to create bogus programs depending on the sugar. Like ((lambda () (+ _ 1)) 1).

This needs more thought if we stay with the dummy var approach.

@namin
Copy link
Contributor

namin commented Oct 12, 2021

Note that we can always use a special character that is not allowed in the syntax. I picked _ in part because it's not allowed for now.

@porcuquine
Copy link
Contributor Author

Yep, it's good.

I just made this note as a reminder to make sure we keep it true in the future. Also, some theories of symbols don't include any disallowed characters.

@arthurpaulino
Copy link
Member

arthurpaulino commented Dec 9, 2023

This issue will be closed once the function application optimization lands, which gets rid of the dummy var altogether

@arthurpaulino arthurpaulino linked a pull request Dec 20, 2023 that will close this issue
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.

4 participants