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

Inline operator support #53

Open
dcutting opened this issue Feb 26, 2018 · 0 comments
Open

Inline operator support #53

dcutting opened this issue Feb 26, 2018 · 0 comments
Labels

Comments

@dcutting
Copy link
Owner

dcutting commented Feb 26, 2018

A function with two arguments could be callable as an inline operator.

x.plus(y) = x+y

5.plus(10)
5 plus 10

May need to distinguish them somehow so the parser can detect they are functions.

This would also require concepts of precedence, etc. :(

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

No branches or pull requests

1 participant