#10963: More functorial constructions
-------------------------------------------------------------------------+--
       Reporter:  nthiery                                                |      
   Owner:  stumpc5                                                              
                        
           Type:  enhancement                                            |      
  Status:  needs_work                                                           
                        
       Priority:  major                                                  |     
Milestone:                                                                      
                         
      Component:  categories                                             |    
Resolution:                                                                     
                          
       Keywords:                                                         |   
Work issues:  Reduce startup time by 5%. Avoid "recursion depth exceeded 
(ignored)". Trivial doctest fixes.
Report Upstream:  N/A                                                    |     
Reviewers:  Simon King                                                          
                         
        Authors:  Nicolas M. ThiƩry                                      |     
Merged in:                                                                      
                         
   Dependencies:  #11224, #8327, #10193, #12895, #14516, #14722, #13589  |      
Stopgaps:                                                                       
                        
-------------------------------------------------------------------------+--

Comment (by nthiery):

 Replying to [comment:31 SimonKing]:
 > Why is there a double-underscore `__neg__` method as element method of
 additive groups? The reason for the single underscore arithmetic methods
 is, to my understanding, to enable the coercion model. But the coercion
 model is not involved in the case of `__neg__`, isn't it? Hence, I think
 one should keep it double underscore, and should not ask for an
 implementation via a single underscore method.


 All I did is to lift this method from
 "sage.structure.element.ModuleElement", as a step toward deprecating this
 class.

 I agree that the _neg_ feature itself is questionable (it has no purpose
 besides consistency). So one could think about removing it (and fixing the
 couple modules in Sage that implement _neg_). But that would require a
 discussion on sage-devel and is in any cases for a different ticket.

 For this ticket, do you think I should add a little comment about this in
 the doc?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10963#comment:46>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to