[Python-3000] Sane transitive adaptation

Ron Adam rrr at ronadam.com
Thu Apr 6 19:26:56 CEST 2006


> But I figured it was something worth throwing out there :) 
>> Cheers,
> Nick.

I'm finding most of this discussion very interesting although the fine 
details haven't clicked for me just yet.
This reminds me of Guido's multi-method blog entry a while back. In 
both the cases being discussed, here as well as in Guido's multi-method 
blog, I find that the concept of logical equivalence seems to be very 
important.
Would implementing a logical equivalence function or operator simplify 
the problem any? (not simple in it self)
 A <=> B -> True if A->B; B->C; and A==C
Or would determining logical equivalence be a use case for an adapter 
registry or general-function look-up method?
It seems so, because there must first be a path from B to A and A to B. 
 But that doesn't necessarily mean they are logically equivalent. So I 
would think adapters are a subset of converters, where adapted objects 
are logically equivalent to each other, while converted objects may not be.
Just a few thoughts of which I'm not sure how relevant they may be.
I'll go back to reading and learning now. ;-)
Cheers,
 Ron


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /