Does anybody use < to compare lookup keys?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Does anybody use < to compare lookup keys?

Nicolas Cellier-3

LookupKey as a descendant of Magnitude does implement <, suggesting the
set of LookupKeys can be fully ordered.
(that's the logic behind Margnitude >=, <=, and >).

Though, you cannot compare arbitrary keys.
(1->nil) < (#a->nil). "false"
(#a->nil) < (1->nil). "MNU isBytes"
(Object new->nil) < (Object new ->nil). "MNU <"

So, is there any application of LookupKey < ?