James Mastros wrote:
> I'm of the opinion that we should consider 3 to be Just Plain Silly and not
> worth worring about overmuch.
AFAICT, you're worrying about everything overmuch.
It suffices, I believe, to put the following contract on the
sort() function:
If the user-supplied comparison function is not relative-idempotent,
then the results of sort() are not guaranteed to be sorted.
If the user-supplied key extraction function is tagged with
:function/:pure (or whatever), then perl is free to optimize
the operation of sort() by memoizing the results of calls to
that function.
--
John Porter