oldk1331 wrote:
> 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.
That is the point: normal case is that we check before using
'children' and error in 'childern' is to catch bugs
(missing check). That is why I ask if you have use
case when we want call without check and empty return is
OK.
Note that "it's hard to handle error in SPAD" only counts
when 'childern' wants to signal error, but operation
is in fact correct.
--
Waldek Hebisch
--
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.