Mhh okay, I can see that point.

On Monday, October 23, 2017 at 6:23:50 AM UTC+2, Travis Scrimshaw wrote:
>
>
>
> On Thursday, October 19, 2017 at 8:59:17 PM UTC-5, Simon Brandhorst wrote:
>>
>> Well richcmp allows you to define just one method. But it does not save 
>> you any work at all if the order is partial. 
>> Because then you have to distinguish the cases op = op_LE , op_GE, op_LT 
>> ... etc. .... so all that you save is documentation and everything is more 
>> obscure.
>>
>
> It depends. In fact, it can make the code easier to follow and maintain 
> because you can do common cases for NE or for LT and LE. In fact, I might 
> be so bold as to say that is what happens generally (how often is the first 
> thing you do is verify the object has a compatible type?).
>
> Best,
> Travis
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to