On Mon, Nov 3, 2008 at 20:09, Brian Granger <[EMAIL PROTECTED]> wrote:
>
> Ondrej,
>
> OK, gives me a bit more context about the history of all of this.
> But, I am definitely in favor of the localizing logic into classes as
> much as possible.  I will be interested to hear what others think
> about this proposal.

Having previously written multi-type pretty-printers of significantly
less complexity, I can chip in that it is fairly hard to actually
localize such logic by type. Inevitably, one type needs to know about
or control another. Encapsulating by output format rather than type
makes a fair bit of sense in this context. Your compromise hits a nice
sweet spot of getting excellent output for all of the builtin stuff
and satisfactory-to-excellent output for new stuff the printer might
not know about.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to