On 09/18/2017 01:16 AM, oldk1331 wrote:
> In Maybe, we can have
>   if R is NNI then
>      Rep := Integer
> and use -1 to denote failure.  And we can specialize for more types.

Aha! Yes, that's probably a good compromise. In fact every domain that
uses a pointer to some data structure on the heap could use NIL to
represent failure. So there are only a few domains like Integer where
the Maybe domain would have to use an extra bit of storage.

Ralf

-- 
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.

Reply via email to