On Tue, Nov 4, 2008 at 3:27 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > > 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.
Thanks Robert for the argument. I have the same opinion. On Tue, Nov 4, 2008 at 7:23 PM, basti <[EMAIL PROTECTED]> wrote: > > I think it's a good proposal of Brian and I sent a patch with an > implementation to > http://groups.google.com/group/sympy-patches/browse_thread/thread/9f8392a8fec0b3e8 The patch is in. Brian --- is the current solution sufficient? Ondrej --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
