How to provide evaluation context to arguments? #985
Labels
Difficult!
Issues that will take a long time to implement, or involve big breaking changes
Needs thinking about
There are some cases where it would be convenient for the evaluation of a token to depend on the context it's evaluated in.
Examples:
latex()
dec(expression)
replace all number literals in the expression with decimals? #764 - replace number literals with decimal values insidedecimal()
At the moment, when an argument of an operation is evaluated, it doesn't have any access to its parents in the expression tree.
I can think of two solutions, both of which require the context-changing operation to be lazily evaluated:
This might end up being related to #677 - parsers for different kinds of notation.
The text was updated successfully, but these errors were encountered: