Email list hosting service & mailing list manager

vector compare Per Bothner (06 Jun 2005 16:34 UTC)
Re: vector compare Michael Sperber (09 Jun 2005 06:01 UTC)

vector compare Per Bothner 06 Jun 2005 16:34 UTC

The default compare for vectors is unusual, and more critically it is
incompatible with the default compare for lists and strings.
The latter are both lexicographic compare.  I couldn't find a
rationale for this difference.

Note that this difference makes it difficult to have a unified
"sequence hierarchy" as in Common Lisp.  The problem is that
ordering is defined in terms of *implementation* types rather
than semantics.

I suggest using lexicographic compare for all "sequence" types.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/