mathics-core
mathics-core copied to clipboard
Expression Refactor Todo list
- [ ] Turn some BaseElement into
@attributeget_attributesSame thing for get_elements, get_head, etc? - [ ] Move
is_inexectout of BaseElement - [ ] Move
get_float_value()out of BaseElement - [ ] Move
do_formatandformatis out of BaseElement
My guess is that
Expressionis the only thing that should haveelements.get_attributeshas a parameterdefinitions, so it can not be put as an@attribute. Also, I wonder how far we want to keep methods that depend onEvaluationorDefinitionobjects to be member functions.get_float_valueis something that makes sense just for Integer, Rational, MachineReal, and PrecisionReal, in the best case.