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

Ascii alternatives to forall and lambda #13

Merged
merged 1 commit into from
May 25, 2024

Conversation

NoamDev
Copy link

@NoamDev NoamDev commented May 25, 2024

with this PR it is possible to use "forall" and "lambda" instead of "∀" and "λ".
It is now also possible to use white space betweern them, and the parentheses.

@VictorTaelin VictorTaelin merged commit 80e3ff7 into HigherOrderCO:master May 25, 2024
@VictorTaelin
Copy link
Member

you need a space after the "lambda " and "forall ", otherwise that'll clash with variable names that start with these words

@NoamDev
Copy link
Author

NoamDev commented May 25, 2024

It's ok to have some reserved words, isn't it? Every language does that.
I think it'd be weird to require a whitespace. Strict spacing is annoying, look how people struggle with "n-1" and "n - 1" in bend (Not like I have a better idea off the top of my head).

@NoamDev
Copy link
Author

NoamDev commented May 25, 2024

Oh, now I get what you meant...
Hmm, I'll try doing something, that'll check for either "lambda " or "lambda(" to avoid the strict-spacing issue.

@NoamDev
Copy link
Author

NoamDev commented May 26, 2024

@VictorTaelin
Here, this fixes the syntax clash.
#14

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

Successfully merging this pull request may close these issues.

None yet

2 participants