On Sun, Nov 26, 2023 at 09:36:34PM +0100, Ralf Hemmecke wrote:
> With the new code I now get
> 
> %%% (363) -> ((INT->String)::OutputForm) pretend SExpression
> 
>    (363)  (PAREN (CONCAT Integer -> String))
> 
> Why have you added "PAREN" to the OutputForm? Isn't that too much?

Well, we always printed such types with outside parens, "PAREN"
just encodes this at OutputForm level.  And reason is that
deciding when to omit parens is in general tricky, so we
otuput more parens than strictly necessary.


> Furthermore, I see that you have changed the output in fmt1d and fmt2d
> for -> to be "->" instead of " -> ". Was this a typo or a particular reason?

This is for consistency with other formatters.  And adding spaces
by putting them as part of a name is asking for trouble.

-- 
                              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 view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ZWO7CR5xD5rIE_4l%40fricas.org.

Reply via email to