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

As a programmer, I want to create function names with arbitrary characters. so that I can overload operators #18

Open
eobrain opened this issue Jul 11, 2014 · 0 comments

Comments

@eobrain
Copy link
Owner

eobrain commented Jul 11, 2014

See request on Hacker News

One possibility would be to allow arbitrary characters in function definitions and invocations, though that might lead to ambiguities in the grammar.

func **(x, y) {
    Math::pow(x, y)
}

test.fact("Can use operators",

    2 ** 3,  =>, 8.0,
    10 ** 2, =>, 100.0
)
@eobrain eobrain changed the title As a programmer, I want to create functions with arbitrary characters. so that I can overload operators As a programmer, I want to create function names with arbitrary characters. so that I can overload operators Jul 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant