mark.a.big...@comcast.net wrote:
> -------------- Original message ----------------------
> From: Larry Wall <la...@wall.org>
>> On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote:
>> > My idea is to let a pair numify to whatever the value numifies to.
>> > Same thing with stringification. In general I think that a pair should
>> > hide its key as far as possible if used as non-pair.
>> 
>> This makes sense to me, but I'd like to see any use cases to the
>> contrary, if anyone can think of one.
> 
> The only use case I can think of is sorting a list of pairs;
>  should it default to sort by key or value?

Since sort uses infix:<cmp> as default comparison, and that has a
special rule for Pairs (compare on key first, if they are equal, compare
on the value) it doesn't really matter in this case what the string
value is.

Reply via email to