Skip to content

Using functions from a structure as infix operators #28

@gludit

Description

@gludit

It seems it's not possible to do something like:

p = load parser;
foo `p.andThen` bar

A simple workaround is do a local binding in the scope and then just use that (e.g. myAndThen = p.andThen; foo `myAndThen` bar), but it gets cluttered quite fast - it would be nice if Yeti supported the above syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions