I have a few reasons:
1. I prefer to have fewer "error" in library, it's hard
to handle error in SPAD, and it makes function not "total"
(it doesn't return a value for certain inputs), that's a
bad property.
2. If we have error for "children", then what about "leaf?"
and many other functions? So I prefer to treat empty
as a special case and give a return value for it.
Anyway, in real code, we already check for empty before
doing things.
On 11/16/18 2:01 AM, Waldek Hebisch wrote:
--000000000000eac038057ab2cbd5
Content-Type: text/plain; charset="UTF-8"
I try to make the meaning of 'children' accurate and consistent:
return value of 'children' should not contain empty aggregate.
Yes, I agree. However, it seems that you change code so that
'children' on empty aggregate returns empty list instead of
error. ATM I tend to think that calling 'children' on empty
aggregate is an error -- do you have any use case when we want
empty list instead of error?
--
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.