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

refactor: revisit the function declarations #9

Open
cristianoliveira opened this issue Sep 20, 2016 · 1 comment
Open

refactor: revisit the function declarations #9

cristianoliveira opened this issue Sep 20, 2016 · 1 comment

Comments

@cristianoliveira
Copy link
Owner

cristianoliveira commented Sep 20, 2016

I am thinking that would be great if the language could express the function declarations in a more math way like:

sum = fn(x, y) { x + y };
return sum(1, 4)

or even:

fn sum(x, y) = { x + y };

return sum(1, 4) 

Just thinking

@cristianoliveira
Copy link
Owner Author

cristianoliveira commented Dec 28, 2016

First part done in 9529402:
let foo = fn [x] { x + 1 }

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

No branches or pull requests

1 participant