yeti icon indicating copy to clipboard operation
yeti copied to clipboard

Using functions from a structure as infix operators

Open gludit opened this issue 6 months ago • 0 comments

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.

gludit avatar Jul 22 '25 20:07 gludit