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

Lambda syntax #5

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Lambda syntax #5

wants to merge 8 commits into from

Conversation

Whiteknight
Copy link
Contributor

I know you were hesitant about this addition. I'd really like to get your opinion about the current syntax and other details.

I found and fixed a few unrelated bugs and spelling errors too, We can cherry-pick those fixes to master if you don't want to merge this whole branch.

…we parse the body as an expression and we implicitly return the result
…es only a simple, single return value. Use this to cleanup the new lambda syntax with implicit return, and make it work more like a normal expression:
…ve factorial functions. Both parts are written in 'classic' syntax and new syntax
…a 'tailcall' into a builtin would fail parsing. Fix that, and now lambdas work for all cases I've tested
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.

1 participant