Closed tzlaine closed 6 years ago
Mooted by recent API changes.
Can you explain exactly how the functionality of transform_evaluate
can now be achieved? Looked at the new documentation but can't figure it out easily.
Sure. transform_evaluate(xform) is the same as transform(xform, evaluation()), now that multiple transform objects can be passed to transform().
Ahhhh, I see.
It applies to the plus operation first. If the context has a handler for plus, then it's up to the context to handle recursion. If it does not, then it becomes evaluate_with_context(a, ctx, x...)
My idea is that it would behave exactly like transform, except that the default behavior for nodes that are not handled by the context is to evaluate the operators instead of building a new expression.
Ah, I think I get it now. This is really a transform_evaluate() then? If so, that does sound useful.