On Fri, Mar 16, 2018 at 9:18 PM, Ralf Hemmecke <[email protected]> wrote: > > Clearly, that is a partial function. But I think it makes sense to also > expose useful partial functions without putting the result in > Union(Integer, "failed"). > Isn't it a waste to put an integer into a union, if the first thing a > user does is to simply take out the integer from the union structure? > > Ralf
It would be a waste if it's used heavily inside a loop and noticeable by profiler. Like the 'subtractIfCan' case we discussed earlier. I'm not sure about 'exquo'. -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
