On Apr 1, 2008, at 2:33 PM, root wrote:
>
> Robert,
>
> I briefly looked over your coercion model.
>
> _repr_ This is the easiest way to define how your object prints
>        It should take a string representing your object
>        I takes one argument, do_latex
>
>
> I might comment that Axiom uses an output domain that exports  
> functions
> for constructing the print representation of its objects. This design
> has made it possible for an object to print itself in various ways.
>
> Over time Axiom has implemented many different output forms, such as
> script (an IBM internal scripting language), algebra (the default 2D
> ascii output), LaTeX, FORTRAN, and most recently MathML, used in the
> new Firefox front end.
>
> You might consider a design that allows the end user the option of
> specifying the desired output form as decoupled from the object
> structure.

Thanks for your input. We are considering a more advanced model  
(David Roe has lots of ideas on this front), but this falls outside  
of the central focus coercion scheme. (This is one reason to use  
_repr_ rather than the Python __repr__ so that the base object's  
__repr__ can do more sophisticated things (although now it just calls  
_repr_).

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to