Lambda syntax#5
Open
Whiteknight wants to merge 8 commits intoNotFound:masterfrom
Whiteknight:lambda_syntax
Open
Lambda syntax#5Whiteknight wants to merge 8 commits intoNotFound:masterfrom Whiteknight:lambda_syntax
Whiteknight wants to merge 8 commits intoNotFound:masterfrom
Whiteknight:lambda_syntax
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.