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 #165

Open
PaulBone opened this issue May 10, 2019 · 2 comments
Open

Lambda syntax #165

PaulBone opened this issue May 10, 2019 · 2 comments

Comments

@PaulBone
Copy link
Member

@PaulBone PaulBone commented May 10, 2019

Decide on the syntax for lambdas and implement it in the compiler front-end & docs.

Implement lambda expressions and partial application, including of higher order terms.

Lambda expressions should look like

func(x, y) { return x + y }

Or with a shorthand when the body is a single expression.

func(x, y) => x + y

Type declarations arn't shown here, they won't normally be used, but probably will be in the initial version.

@Gertm
Copy link
Contributor

@Gertm Gertm commented May 11, 2019

Is this a discussion on how the lambda syntax needs to look? Or is it you implementing it?

@PaulBone
Copy link
Member Author

@PaulBone PaulBone commented May 21, 2019

This is for the implementation. But discussion is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants