SymbolicML / DynamicExpressions.jl

Ridiculously fast symbolic expressions
https://symbolicml.org/DynamicExpressions.jl/dev
Apache License 2.0
92 stars 12 forks source link

Clean up convenience functions #6

Open MilesCranmer opened 1 year ago

MilesCranmer commented 1 year ago

Is there a way I can make the convenience functions (https://github.com/SymbolicML/DynamicExpressions.jl/blob/af68fa89fcad4e2272c91ae9e90baeda13ff49d2/src/OperatorEnumConstruction.jl#L49) more robust? Right now there are created with:

Base.MainInclude.eval(...)

from inside DynamicExpressions.OperatorEnum(...). Is there a way I can get a basic @eval to work here (and still extend the user-defined operators)? Perhaps I need to simply export the functions (or non-implemented versions of the functions)?

@odow any ideas/tips?