Skip to content

Add named lambda_parameters rule #6

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

Merged
merged 1 commit into from
Jul 7, 2017
Merged

Conversation

rewinfrey
Copy link
Member

This differentiates lambda parameters from the rest of the expressions in a lambda body. @maxbrunsfeld the motivation behind this is to make it easier in the shape of the tree to determine where the body of the lambda starts. This isn't so much of a problem for function calls or function definitions, because those parameters include ( and ), but lambda parameters do not use ().

I also simplified the test for lambdas, as the assignment was unnecessary.

@rewinfrey rewinfrey requested a review from maxbrunsfeld July 7, 2017 18:44
@rewinfrey rewinfrey merged commit bbb3639 into master Jul 7, 2017
@rewinfrey rewinfrey deleted the named-lambda-parameters branch July 7, 2017 18:54
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.

2 participants