#20859: Simplify the logic handling the EvaluationMethods mixin class for
Expression
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-7.3
      Component:  symbolics          |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Nicolas M. ThiƩry  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  
u/nthiery/optimize_method_lookup_from_the_categories_for_instances_of_cython_classes|
  5619a7d0f032f4273069166e6babf938b8c3f40a
   Dependencies:  #20825, #20686     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:13 nthiery]:
 > Using a metaclass would mean one more piece of purely technical
 > syntax, which is one more chance for the programmer to forget
 > something. Still you have a good point here: the infrastructure should
 > check that XXXMethods inherits from nothing, and raise an explanatory
 > error message if not.

 I'm not saying a metaclass is the right solution, it was just some
 proposal. That being said, you could think if there are other ways in
 which your "bag-of-methods" classes differ from "real" classes. Such
 differences might be handled cleanly by such metaclass. For example, you
 could use the metaclass to disable automatic binding of methods or to
 disallow instantiation of the class.

--
Ticket URL: 
<https://u3351942.ct.sendgrid.net/wf/click?upn=aTs-2BwUSKwq20U-2FVxpZle9V7rZPHNFdCZn9IqCcBPbg6Wx7VTUgJoegiKQ3QL4-2BXvvg3V50mMQs1PlS79IUQBdw-3D-3D_gXX0YPkjCa6kfMda2NWALp0MQ-2FOvmULrxPdhd2nGLCZEW2nNq6-2FHhWrC-2FJoDHqBhTY5jOpjt3gMjJed1FZNwEMLO5bhjOWFQcVPdq4FM-2B9rYknFl0qPTPDnONHAi0IdH-2BDGJftMp6o5siZ49VgHHt3EnyQZ6hQjmwBXxbQZ7Qe3z9FEv1GeLbMs9XGLsQSDd0wju-2BDTXf2-2B6i63r2l3co53RlGVbLpZKP5owCWuSeTs-3D>
Sage 
<https://u3351942.ct.sendgrid.net/wf/click?upn=jm4cvpnHFskDUI5PLE4HCGcqpDNkng8vhBVTwprYF6Q-3D_gXX0YPkjCa6kfMda2NWALp0MQ-2FOvmULrxPdhd2nGLCZEW2nNq6-2FHhWrC-2FJoDHqBhTY5jOpjt3gMjJed1FZNwEL2xg9k7ZKOmLhwGK8CmCbKMdkmuR0n2DaIfXg4vc-2FINGSsDywJa-2BbmOj9weh0zv5AVpC1TG5p-2FjYOs4fXu2O5JgQE8jJiIP5DjKZtXXyz9fanWKMwZRaYAKnW0CBjolmWkii9vG-2Bxd27aG8mNpt90E-3D>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to