On Sunday, August 24, 2014 1:38:51 PM UTC+1, Daniel Krenn wrote: > > MyElementAdd(MyElementAtom, MyElementMul(MyElementAtom, MyElementAtom) > should be a valid element for my parent. >
Are these classes? You mean there is an open-ended number of classes? (I thought a while about making the recursive structure a "data > structure" inside the element, but this seems to make an additional > layer, which is not needed. IMHO that would be much easier. If you care about performance its more important to store your expression tree (I guess thats what you have) in a linear data structure than avoid that one layer of indirection. See e.g. the fast_callable machinery in sage/ext/fast_callable.pyx -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.