[REBOL] Re: Tuples - Was Pair! thread
From: chaz:innocent at: 7-Feb-2002 13:45
>For example, tuples can also be used to
>represent colors -- for which there are a variety of useful
>orderings: lighter-than? darker-than? more-saturated-than? and
>so forth.
The primitive operators '>, '=, and '< have very clear and unambigous
meanings when applied to scalar values.
Neither pairs nor tuples are scalar. That being said, I'd love to be able to
sort colors.
Imagine picking one of the recognized color solids, taking slices through it
and sorting based on the slice that a color is a part of.
Since there are several color solids, and many ways to slice them, perhaps
the REBOLish solution would be to use the system object to explicitly
specify which solid and through which axis one is slicing.