Skip to content

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

@eobrain

Description

@eobrain

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
)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions