Lazy function evaluation #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this allows
ifto be a regular function (altho it'd still have to be implemented in rust) and also allow recursion.Unfortunately, this is not possible with the
expr-parser-based expression parser (#22), since with the expression format that uses, all arguments to an operator are evaluated before the operator itself is known. So I think this is going to need to involve re-writing the expression parser (again).Actually with https://github.com/zyxw59/expr-parser/pull/25, it should be possible to avoid rewriting the parser entirely. We'll parse to an AST and then evaluate that tree, and implement lazy evaluation there. I think this will also make it easier to parse (anonymous) function definitions (#2).