Mark Biggar wrote:
> The only use case I can think of is sorting a list of pairs;
>  should it default to sort by key or value?

But this isn't a case of numifying a Pair, or of stringifying it - or
of coercing it at all.  If you've got a list of Pairs, you use a
sorting algorithm that's designed for sorting Pairs (which probably
sorts by key first, then uses the values to break ties).  If you've
got a list that has a mixture of Pairs and non-Pairs, I think that the
sorting algorithm should complain: it's clearly a case of being asked
to compare apples and oranges.

When are you going to be asked to stringify or numify a Pair?  Actual
use-cases, please.  Personally, I can't think of any.

-- 
Jonathan "Dataweaver" Lang

Reply via email to