[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vector compare

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
per@xxxxxxxxxxx   http://per.bothner.com/