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

LES3: Operators by themselves #109

Open
qwertie opened this issue May 2, 2020 · 0 comments
Open

LES3: Operators by themselves #109

qwertie opened this issue May 2, 2020 · 0 comments
Projects

Comments

@qwertie
Copy link
Owner

qwertie commented May 2, 2020

Sometimes you just want to write

Foo(list, ...)

without getting an error, and it would be nice if it were possible to use operators as if they were names, much as in Haskell:

reduce(+, 0, [11,22,33]) // 66

In Haskell the operator must generally be in parentheses (+), and of course this would sometimes be required in LES too (+(2,3) means something quite different than (+)(2,3), and I propose that ==(2,3) would remain illegal).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
LESv3
Awaiting triage
Development

No branches or pull requests

1 participant