On 5/12/24 16:01, Waldek Hebisch wrote:
OutputForm was designed so that operators are Symbol-s and
dealing with operators should use opearations from Symbol.
fmt.spad essentially treated operators as strings (they were
immediately converted to strings and resto of code used
string operations).  The attached patch replaces strings
by symbols, alt least in places that I found.

I do not see any bug/problem in my formatting framework.

The only thing that is needed from OutputForm is the string representation of the operator (and its semantics). It's just a matter of taste whether the interface uses String or Symbol. I have chosen String.

I do not like the usage of ' in a .spad file.
The patch introduces the need for ::Symbol for the third parameter in setOperatorHandler!, i.e. makes it less user friendly.

I see no benefit of that patch and thus I am strongly against it.

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 fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/5ff5b4b9-3dab-43d0-a835-abd961fda92b%40hemmecke.org.

Reply via email to