On 07/30/2016 05:36 AM, oldk1331 wrote:
> Polynomial in FriCAS is functional: its Rep is List of Record,
> but there are no functions can modify its content (no
> destructive functions), so it's actually an immutable data
> structure.  So functions such as add (+) returns shared
> structure.

Nearly true. The problem is that some new domains rely on the "List of
Record" representation and access the representation directly instead of
via exported functions.

For example here...
https://github.com/fricas/fricas/blob/master/src/algebra/poly.spad#L123

I haven't checked whether this actually contains "destructive" elements,
but I still find this a rather bad legacy style that should some day be
removed from FriCAS.

No domain should rely on a certain representation of another domain!

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