[REBOL] Re: Tuples - Was Pair! thread
From: carl:cybercraft at: 8-Feb-2002 17:52
On 07-Feb-02, Carl Read wrote:
> Given that, what should a pair comparison compare?
> Size? As in the area of two pairs? Well no, as we can at least check
> if two pairs are equal, and it says 3x2 isn't equal to 2x3. (No
> doubt someone's already pointed this out.)
> Coordinates? As in the distance from 0x0? Well, perhaps, even though
> I'd guess you're more likely to want to compare a coordinate with a
> point other than 0x0 most of the time. This would be useful
> sometimes, anyway.
Doh! Coords are the same as sizes, in that points can be the same
distance from 0x0 but not equal. (:
> All things considered though, it's quite easy to see why RT thought
> comparing pairs is confusing and decided not to support it.
Couldn't have put it better myself. (;